Code covered by the BSD License  

Highlights from
Solution of Fractional Optimal Control Problems

from Solution of Fractional Optimal Control Problems by Christophe Tricaud
Solution of Fractional Optimal Control Problems using Rational Approximation

sys_Dl(neq,t,x,u)
function [l_x,l_u,l_t] = sys_Dl(neq,t,x,u)

global sys_params A B C D


% l_x should be a row vector of length n.
% l_u should be a row vector of length m.
% l_t is not used.

F_NUM = neq(5);

l_x = 2*C'*C*x;
l_u = 2*D'*D*u + 2*u;

Contact us at files@mathworks.com