No BSD License  

Highlights from
GPOPS

from GPOPS by Camila Francolin
Solves multiple phase optimal control problems.

gpopsClearFields(setup);
function setup = gpopsClearFields(setup);
%------------------------------------------------------------------%
% Clear fields from the structure setup at end of a NLP solver run %
%------------------------------------------------------------------%
% GPOPS Copyright (c) Anil V. Rao, Geoffrey T. Huntington, David   %
% Benson, Michael Patterson, Christopher Darby, & Camila Francolin %
%------------------------------------------------------------------%

fields_to_remove = {'sizes','varbounds_min','varbounds_max','conbounds_min','conbounds_max','nlplimits','variables','constraints','variable_indices','constraint_indices','numphases','numnonlin','numlinks','indices','numconnections','numvars','numlin','Alinear','Alinmin','Alinmax','init_vector','ps','column_scales','row_scales','dependencies','sparsity_nonlinear','sparsity_jac','result'};
setup = rmfield(setup,fields_to_remove);

Contact us at files@mathworks.com