Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox
28 Jan 2013
28 Jan 2013)
files from the webinar
% Copyright 2012 The MathWorks, Inc.
function out = objectiveFcnNumeric(x)
% This is the objective funtion for the optimisation
% We want to minimise the mass loss. This can be achived by maximising the
% mass of the car when at the point when the jet and rocket are switched
% off. This minimise the negative of the mass at this time.
rocketStartTime = x(1);
engineOffTime = x(2);
% chute1Time = x(3);
% chute2Time = x(4);
out = -Mass(engineOffTime, rocketStartTime, engineOffTime);