Examples¶
These examples show many different ways to use CVXPY.
TheBasic examples section shows how to solve some common optimization problemsin CVXPY.
TheDisciplined geometric programming section shows how to solve log-log convex programs.
TheDisciplined quasiconvex programming section has examples on quasiconvex programming.
TheDerivatives section shows how to compute sensitivity analyses and gradients of solutions.
There are also application-specific sections.
TheBasic applications section shows real-world applications ofcommon optimization problems.
TheMachine learning section is a tutorial on convex optimization inmachine learning.
TheAdvanced andAdvanced applications sections containsmore complex examples for experts in convex optimization.
Most of these examples are implemented asJupyter notebooks, while some are implemented asinteractivemarimo notebooks.
Basic examples¶
For geometric interpretations of linear and quadratic programs, see the marimo links.