LqrSim

Algebraic Riccati equation solution in Simulink via C and FORTRAN
7.4K Downloads
Updated 18 Sep 2023

simulink-riccati-solver

Algebraic Riccati equation solution in Simulink via C and FORTRAN

View simulink-riccati-solver on File Exchange

Open in MATLAB Online

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

Cite As

Giampiero Campa (2024). LqrSim (https://github.com/giampy1969/simulink-riccati-solver/releases/tag/v1.3.1), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.1

See release notes for this release on GitHub: https://github.com/giampy1969/simulink-riccati-solver/releases/tag/v1.3.1

1.3.0.0

Fully converted to BSD License

1.2.0.0

Many thanks to Jason Hall and Riccardo Bevilacqua for your excellent job in enabling native matrices inputs to the block and
using the open source g77 FORTRAN compiler to create mex files and RTW binaries under both Windows and Linux.

1.1.0.0

This version works with MATLAB 7.6 (R2008a), uses native matrix signals, is re-mexable on every platform, and is better integrated with real time workshop (Thanks Jason & Riccardo).

1.0.0.0

Recompiled mex files with matlab 7.1 so that everything works fine with newer versions requiring the .mexw32 extension. The .dll files are retained to the benefit users working with versions prior to 7.1, other users may delete them.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.