The scripts in this repository can generate all four figures from the paper. However, they will take very different amounts of time to do so!
One should first run /src/GenerateLookupTable.m, or preferrably, download the completed lookup table directly (it may take DAYS to generate on a desktop!).
If one wishes to NOT use the lookup table, I recommend starting with /examples/Fig1.m, after firstly changing \src\Computation\get_nonlinear_minimum_lookup.m to always skip the lookup table.
Doing so will make Fig1.m take a couple of hours to run on a desktop, while it takes around 3-5 minutes with the lookup table.
One can also begin with FigS3, which shows just the shape function calculations without the outer optimization loop.
Even with the lookup table, be aware that running Fig3b and Fig2 on a desktop is likely infeasible - it may take days or weeks.
Please email ipincus@mit.edu if you have any questions.