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.
16 téléchargements
Mise à jour 30 juil. 2023

Afficher la licence

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.

Citation pour cette source

Arindam Kumar Paul (2024). Analytical Analysis of an OCP with System of ODEs in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/132907-analytical-analysis-of-an-ocp-with-system-of-odes-in-matlab), MATLAB Central File Exchange. Récupéré le .

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".

Compatibilité avec les versions de MATLAB
Créé avec R2022a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

Inspiré par : OpenOCL - Open Optimal Control Library

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0

Codes are updated and some bugs fixed.

1.0.0