This repository contains the code used to generate the images for the paper Computational Bounds for Photonic Design by Guillermo Angeris, Jelena Vučković, and Stephen Boyd.
Make sure you have all of the requirements.
Clone the repository and simply run (assuming that Julia is found in your PATH
)
julia generate_figures.jl
The script will then run (producing a good amount of output in the console, for those interested) for a few minutes on most modern laptops.
It should then produce several *.pdf
files in the directory that contains it.
There are a few parameters to change. The ones currently set are exactly the ones provided in the original paper.
See the code for further documentation.
This package has the following requirements:
- Julia version ≥ 1.0
- PyPlot
- JuMP (version ≥ .19 required!)
- ProgressMeter
And, if you plan to use it directly, it will also require
- Mosek
- MosekTools
Additionally, if you'd like to save the iterates, you will also need
- JLD
You can install any of these from the Julia console (REPL) by typing ]
and
add [PACKAGE_NAME]
. See the Julia documentation for more details.