Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.51 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.51 KB

Code for Computational Bounds for Photonic Design

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.

Running the script

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.

Changing parameters

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.

Requirements

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.