# GloptiNets

## How to run

This code was executed on Julia 1.8.5. First intantiate the project with `] instantiate`. Then you can run the files in the REPL. CUDA compatible GPU are recommended for interpolation.

## Code structure

The code is in the `src` directory. The PSD models are in the `src/psdmodels.jl` file. The polynomials are in the `src/polnomials.jl` file. The training loop is in the `interpolate` function of the `src/GloptiNets.jl` file. The random polynomials are in the `data` folder. You can use the `load(::Union{PolyCheby, PolyTrigo}, filename)`, to load them and inspect them. 

The files in `scripts/xps` are used to launch a lot of experiments, and the ones in `scripts/process_xps` to inspect the results. 