Cupcake placement via difference of convex optimization
This Jupyter notebook-based blog post can be setup in your local machine as follows (see this post for repeatability instructions):
- Jupyter notebook (Use right click and ‘Save Link as’)
- Conda environment file
It uses the problem of placing a fixed number of round smaller circles in a large circle as a nonlinear (non-convex) optimization problem. It was through setting up and solving the resulting difference of convex optimization problem using CVXPY.