Analytical Analysis of an OCP with System of ODEs in MATLAB
版本 1.1.0 (9.4 KB) 作者:
Arindam Kumar Paul
Do the analytical analysis of an Optimal Control Problem with 3 ODEs and Objective Functions Graphically.
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 :
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.
引用格式
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. 检索时间: .
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".
MATLAB 版本兼容性
创建方式
R2022a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.1.0 | Codes are updated and some bugs fixed. |
|
|
1.0.0 |
|