OpEn

OpEn

  • Docs
  • Blog
  • Rust API
  • Opengen API
  • Chat
  • Github

›Python

Python

  • Rosenbrock Function
  • Navigation of ground vehicle
  • Nonlinear State Estimation
  • Ball and Plate
  • Tandem tanks
  • Inverted Pendulum
  • Husky robot with ROS

Inverted Pendulum

Problem statement

This example is incomplete and will be updated soon.

Before we start

We will need to import the following libraries in Python:

import casadi.casadi as cs
import opengen as og
import matplotlib.pyplot as plt
import numpy as np

System dynamics

Description coming soon....

Nonlinear MPC problem

Description coming soon....

Code generation

Code coming soon

Simulations

Description coming soon....

Closed-loop trajectories

Description coming soon....

Closed-loop simulation: states Closed-loop simulation: input

Solver statistics

Description coming soon....

← Tandem tanksHusky robot with ROS →
  • Problem statement
    • Before we start
    • System dynamics
    • Nonlinear MPC problem
    • Code generation
  • Simulations
    • Closed-loop trajectories
    • Solver statistics
OpEn
Docs
Getting StartedPython interfaceMATLAB interfaceDocker
Community
User ShowcaseDiscord communityChat on GitterTwitter
More
BlogGitHubOpenhubStar

Tweet
Copyright © 2025 Pantelis Sopasakis and Emil Fresk
Box Icon made by Freepik from www.flaticon.com