OCMat - Software
OCMAT is a collection of Matlab files developed to analyze optimal control models.
With the help of OCMat it is possible to
- analyze (non-)autonomous optimal control models of (in)finite time horizon
- deal adequately with constraints on control and/or state variables
- locate steady states and limit cycles
- find solution paths by solving a BVP
- locate Skiba points
- and much more...
We invite the user to visit this site every now and then to follow the actual stage of development.
Find here the most current version of the toolbox.
OCMat Version 09. 03. 2011: Download
- MATLAB V. 7 or higher together with: Symbolic Toolbox (required) and Optimization Toolbox (in default settings used)
- MATCONT toolbox (optional) for bifurcation related calculations
- Make sure you have correctly installed Matlab and the necessary toolboxes.
- Download the OCMAT-Toolbox and unzip it into any directory, where MATLAB can find it (or add the directory to the MATLAB path).
Customizing the boundary value solver (bvp4c,...): By default the boundary value solver does not return information about the number of internal calls of the boundary condition function. But since we utilize this value to decide if the step width is increased, this m-file has to be adapted. Therefore the user is advised to add the linesol.bcevals=nBCeval;
at the end of the 'Output' part of the 'bvp4c' file. This should also be done if 'bvp6c' is used.
- (optional) Type ochivdemo or occademo at the command line to see a demonstration of what the toolbox is currently able to do.
You can find the OCMat-toolbox manual here: View
We also want to refer the reader to the book 'Optimal Control of Nonlinear Processes - With Applications in Drugs, Corruption and Terror', where the reader can learn about the mathematical background used in this toolbox and see some examples (graphics and numerical computations) presenting some of the capabilities of the toolbox.
For a demonstration about what currently can be done with the toolbox, you can find some demo files together with the toolbox.
By invoking these demo files with ochivdemo and occademo, some explanatory text is provided. The in MATLAB experienced user is also advised to go through the commented MATLAB files and find the answers and explanations of several questions. Further support will be provided here.
In the following you can find the slides of an introductory seminar about the toolbox
- December 6th, 2010: First steps: Implementation and a simple model
- December 13th, 2010: Basic numerical methods
- December 20th, 2010: Higher dimensional models and constraints
- January 10th, 2011: Multiple solutions and heteroclinic bifurcations
- January 17th, 2011: Limit cycles and a MatCont interface
- January 31st, 2011:Implicit controls and animated results
OCMat version for the seminar: ocmat.zip
Handouts (for printing)
D. Grass, J.P. Caulkins, G. Feichtinger, G. Tragler, D.A. Behrens, Optimal Control of Nonlinear Processes - With Applications in Drugs, Corruption and Terror, Springer, 2008