Algebraic Riccati equation solution in Simulink via C and FORTRAN
This s-function solves Riccati equations in Simulink® without calling MATLAB® it is fast and supports code generation.
Specifically, the s-function is a level-2 gateway that calls several FORTRAN routines written by Arnold and Laub in the early eighties and publicly available under the cascade sublibrary of netlib. FORTRAN code is included in the Readme file, along with further instructions on how to compile and link the s-function.
Giampiero Campa, October 2002 and January 2009,
Riccardo Bevilacqua & Jason Hall, NPS Spacecraft Robotics Lab, October 2008