Suspended and inverted pendulums were built in AutoDesk Inventor. SimMechanics is used to generate a Simulink model. This model generates the dynamics implicitly, so there is no need to solve the equations of motion by hand. The dynamics are used by control optimization software: DIDO, available commercially. Sample results are included along with analysis which compares it against a linearly-optimal state transformation and the linear-quadratic-regulator. In addition, optimality conditions are verified based on the explicit equations of motion.
Added published code.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.