--- title: Learn Optimization description: > Learn the basics of convex optimization using Python, and see how to apply these ideas to vehicle control, portfolio allocation in finance, and other areas. --- You can open and run these notebooks in [molab](https://molab.marimo.io), marimo's free hosted notebook platform. After working through these notebooks, you'll understand how to create and solve optimization problems using Python's [CVXPY](https://github.com/cvxpy/cvxpy) library, as well as how to apply what you've learned to real-world problems. ## Notebooks - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/01_least_squares.py) Least Squares - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/02_linear_program.py) Linear Program - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/03_minimum_fuel_optimal_control.py) Minimal Fuel Optimal Control - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/04_quadratic_program.py) Quadratic Program - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/05_portfolio_optimization.py) Portfolio Optimization - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/06_convex_optimization.py) Convex Optimization - [![Open in molab](https://marimo.io/molab-shield.svg)](https://molab.marimo.io/github/marimo-team/learn/blob/main/optimization/07_sdp.py) Semidefinite Program ![SpaceX](https://www.debugmind.com/wp-content/uploads/2020/01/spacex-1.jpg) _SpaceX solves convex optimization problems onboard to land its rockets, using CVXGEN, a code generator for quadratic programming developed at Stephen Boyd's Stanford lab. Photo by SpaceX, licensed CC BY-NC 2.0._ ## Contributors Thanks to our notebook authors: * [Akshay Agrawal](https://github.com/akshayka)