MATLAB Dynamic Optimization Toolbox
![](https://gekko.apmonitor.com/wiki/uploads/Main/apm_matlab.png)
git clone git://github.com/APMonitor/apm_matlab
Download APM MATLAB Libraries
The latest APM MATLAB libraries are attached below. Functionality has been tested with the latest release of MATLAB.
![](https://gekko.apmonitor.com/wiki/uploads/Main/download.jpg)
Nonlinear Programming with MATLAB
![](https://gekko.apmonitor.com/wiki/uploads/Main/hs71.gif)
Hock-Schittkowsky Test Suite #71
CSTR: Continuous Stirred Tank Reactor
![](https://gekko.apmonitor.com/wiki/uploads/Main/matlab_results.png)
The APM solution is compared to the ODE15s built-in integrator in MATLAB. Unlike ODE15s, APMonitor allows higher-index DAEs and open-equation format. APMonitor is also a simultaneous equation solver that transforms the differential equations into a Nonlinear Programming (NLP) form. This allows efficient optimization, even for large-scale models.
NLC: Nonlinear Control with MATLAB
In another example, the dynamic simulation and control technologies are demonstrated with a simple lag model. The model is composed of one differential equation and one algebraic equation. This model is used as a tutorial to demonstrate the control technology features.
![](https://gekko.apmonitor.com/wiki/uploads/Main/matlab_ctrl.png)
This model demonstrates a simulated step change and two controlled step changes. Two different controlled variable error models are compared. At the end of the simulation, a browser window opens to allow the user to view the solution through the web-interface.