Modeling and CasADi-Based NMPC for Stabilization and Tracking of Multiple Desired Reference Configurations in a Double Inverted Pendulum

Closed

Indrazno Siradjuddin, Yan Watequlis Syaifudin, Wahyu Aulia Nurwicaksana, Ida Lailatul Fitria, Handry Khoswanto

2025 Digest of Technical Papers - IEEE International Conference on Consumer Electronics Conference paper Cited by 0 SDG 16 Quartile

Abstract

This paper presents a modeling and control approach for a double inverted pendulum system mounted on a cart using Nonlinear Model Predictive Control (NMPC) implemented via the CasADi framework. The dynamic model is derived from Lagrangian mechanics and discretized using a fourth-order Runge-Kutta method to ensure accurate state propagation. The NMPC controller is designed to stabilize the inherently unstable system and accurately track multiple desired reference configurations, including transitions between upright and inverted states of both pendulum links. The optimization problem is solved at each time step using IPOPT, leveraging symbolic differentiation and efficient numerical solvers within CasADi. Simulation results demonstrate the robustness and accuracy of the proposed control strategy in achieving smooth transitions between complex setpoints while strictly adhering to input and state constraints. Notably, the controller successfully stabilizes the system from an initially inverted configuration and tracks piecewise constant references with minimal steady-state error, even during abrupt changes in cart position and pendulum orientation. These results validate the effectiveness of the CasADi-based NMPC formulation as a powerful tool for controlling highly nonlinear and underactuated systems. ©2025 IEEE.

Affiliations

Electrical Engineering Department, State Polytechnic of Malang, Malang, Indonesia; Information Technology Department, State Polytechnic of Malang, Malang, Indonesia; Electrical Engineering Department, Petra Christian University, Surabaya, Indonesia

Research at a Glance

Premium content — register to unlock

Research at a Glance

Register to unlock

Topics & SDG Alignment

Premium content — register to unlock

Topics & SDG Alignment

Register to unlock

Collaboration

Premium content — register to unlock

Collaboration

Register to unlock

Author Profile (Selected)

Premium content — register to unlock

Author Profile (Selected)

Register to unlock

References Overview

Premium content — register to unlock

References Overview

Register to unlock

Journal & Source

Premium content — register to unlock

Journal & Source

Register to unlock

Metadata & Integrity

Premium content — register to unlock

Metadata & Integrity

Register to unlock