Code covered by the BSD License  

Highlights from
Optimal Control Using Control Vector Parameterization

image thumbnail

Optimal Control Using Control Vector Parameterization

by

 

An example of using control vector parameterization to solve an optimal control problem

confun1( x0, dvar, ts, N, beta, optODE)
function [c, ceq] = confun1( x0, dvar, ts, N, beta, optODE)
%CONFUN1 constraint function for piecewise constant control
f = myfunint1( x0,N,ts,dvar,beta,optODE );

ceq(1) = dvar(2*N+1) - f(1);
ceq(2) = dvar(2*N+2) - f(2); % for final position, the value of design 
% varialbes must be the same as the ones come out from integration
c = [];
end

Contact us