Single shooting method example
Versión 1.0.0.0 (2,56 KB) por
Vinh Nguyen
An example of solving constrained optimization problem with single shooting method.
% This code demonstrates an example of solving constrained optimization problem
% with single shooting method.
% Constrained Optimization Problem:
% minimize L = 1/2 * integral_from_t0_to_T of (u.^2)
% Subject to: x_dot = (x2; u); with x = (x1, x2)
% initial value x(0) = (0; 1);
% final value x(T) = (0; -1);
% inequality constraint: x1 < 1/9;
Citar como
Vinh Nguyen (2024). Single shooting method example (https://www.mathworks.com/matlabcentral/fileexchange/62564-single-shooting-method-example), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2014a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Nonlinear Optimization en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |