Analytical Analysis of an OCP with System of ODEs in MATLAB

Do the analytical analysis of an Optimal Control Problem with 3 ODEs and Objective Functions Graphically.
17 Descargas
Actualizado 30 jul 2023

Ver licencia

Just run the code, you are allowed to set 6 symbols here and you can extend. Here, a system with 3 ODEs is preferable. If you have more please do some code. Run, Enter Symbols you need, enter Equations (System of Odes with Control Variables, Input the Objective Function, Get the Necessary and Suficient Proof for the existence of Optimal Control, Get the value of control analytically, get the adjoint system, get the Hamiltonian, Lagrangian etc.)
Use Latex(vars) to get the latex code for the variable/expression.
Just Input like : a - gamma*p - v1*alpha*p- beta*p-delta*p-u1*p (Equations)
Equations be like :
Where, Initial Conditions are :
Objective Functional is defined by : Objective functional
Nothing, Just Run, If get an error, just turn 2-13 lines as comments by using "%" before the lines.
See the analytical outcomes in the command window.
Output:
Hamiltonian:
Adjoint System :
Value of Control :
,
And others like stability, Equillibriums etc. Will be updated soon.
Contribute.
Enjoy.

Citar como

Arindam Kumar Paul (2025). Analytical Analysis of an OCP with System of ODEs in MATLAB (https://la.mathworks.com/matlabcentral/fileexchange/132907-analytical-analysis-of-an-ocp-with-system-of-odes-in-matlab), MATLAB Central File Exchange. Recuperado .

As a codework for the project and published work entitled "Modeling and Optimal Control Applied to Reduce the Effects of Greenhouse Gases Emitted from the Coal-based Power Plant in Bangladesh".

Compatibilidad con la versión de MATLAB
Se creó con R2022a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Agradecimientos

Inspirado por: OpenOCL - Open Optimal Control Library

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.0

Codes are updated and some bugs fixed.

1.0.0