Skip to main content
Ctrl+K

csnlp

  • Getting started
  • Module reference
  • Examples
  • Changelog
  • GitHub
  • PyPI
  • Getting started
  • Module reference
  • Examples
  • Changelog
  • GitHub
  • PyPI

Section Navigation

  • A simple optimization problem: hanging chain
  • A simple optimization problem: Rosenbrock function
  • Integer Programming examples
    • A mixed integer linear programming example
  • Multistart Optimization examples
    • A simple problem with multiple minima
  • Optimal control examples
    • Simple open-loop MPC controller
    • Linear MPC control
    • Multiple Scenario MPC
    • Scenario-based MPC
    • MPC controller for PWA systems
  • Scaling examples
    • How scaling can help convergence
  • Sensitivity examples
    • A simple example of sensitivity analysis
    • A simple example of sensitivity analysis (3d version)
    • Comparison of CasADi’s and csnlp’s sensitivity computations
  • Examples
  • Optimal control examples

Optimal control examples#

These examples detail how to use csnlp to create and solve optimal control problems with csnlp.wrappers.Mpc, csnlp.wrappers.ScenarioBasedMpc, and other similar wrapper classes.

Simple open-loop MPC controller

Simple open-loop MPC controller

Linear MPC control

Linear MPC control

Multiple Scenario MPC

Multiple Scenario MPC

Scenario-based MPC

Scenario-based MPC

MPC controller for PWA systems

MPC controller for PWA systems

previous

A simple problem with multiple minima

next

Simple open-loop MPC controller

Edit on GitHub

This Page

  • Show Source

© Copyright 2024, Filippo Airaldi.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.