Code covered by the BSD License
-
Optimal Control Using Control...
-
[topt,xopt,uopt,thetaopt]=plo...
PLOTOPT1 plot function for piecewise constant control
-
[topt,xopt,uopt,thetaopt]=plo...
PLOTOPT2 plot function for continuous linear spline control
-
animateopt( topt,xopt,uopt,th...
ANIMATEOPT animate the optimal state trajectory
-
confun1( x0, dvar, ts, N, bet...
CONFUN1 constraint function for piecewise constant control
-
confun2( x0, dvar, ts, N, bet...
CONFUN2 constraint function for continuous linear spline control
-
costfun1( x0, ts, dvar, rho, ...
COSTFUN1 cost function for piecewise constant control
-
costfun2( x0, ts, dvar, rho, ...
COSTFUN2 cost function for continuous linear spline control
-
dyneqn1( t,x,u,theta,beta,ks ...
DYNEQN1 dynmaic equation of the system with piecewise constant control
-
dyneqn2( t,x,u,theta,beta,ts,...
DYNEQN2 dynmaic equation of the system with continuous linear spline control
-
myfunint1( x0,N,ts,dvar,beta,...
MYFUNINT1 integration function for piecewise constant control
-
myfunint2( x0,N,ts,dvar,beta,...
MYFUNINT2 integration function for continuous linear spline control
-
main_multistart.m
-
View all files
Optimal Control Using Control Vector Parameterization
by Chang Duan
19 Dec 2012
An example of using control vector parameterization to solve an optimal control problem
|
Watch this File
|
| File Information |
| Description |
File to run: mainproc.m
Control vector parameterization, also known as direct sequential method,
is one of the direct optimization methods for solving optimal control problems. The basic idea of direct optimization methods is to discretize the control problem, and then apply nonlinear programming (NLP) techniques to the resulting finite-dimensional optimization problem.
The problem is that you wish to steer from point $A=(0,0)$ at time $t = 0$ to close to point $B=(4,4)$ at time T. The motion takes place in the $x_1, x_2$ plane. Your control variables are thrust $u$ and angle of thrust $\theta$. The angle $\theta$ is measured from the $x_1$ axis. To make life interesting there is large mass at (3,0) that exerts a force proportional to the inverse of the square of the distance you are from the mass. (See published code for details)
* The problem is from a Optimal Control course (by Dr. Stephen Campbell) at NCSU. |
| Required Products |
Optimization Toolbox
MATLAB
|
| MATLAB release |
MATLAB 7.12 (R2011a)
|
| Other requirements |
Need Global Optimization Toolbox to run main_multistart.m |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us