Code covered by the BSD License  

Highlights from
Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox

image thumbnail

Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox

by

 

28 Jan 2013 (Updated )

files from the webinar

constraintFcnSymbolic(x)
%
% Copyright 2012 The MathWorks, Inc.
function [c,ceq] = constraintFcnSymbolic(x)

tJet = x(1); 
tEngineOff = x(2); 
tChute1 = x(3);
tChute2 = x(4);

oneMile = 1609.344;
dist1000 = helper.distOver1000(tJet, tEngineOff, tChute1, tChute2);
totalD = helper.totalDistance(tJet, tEngineOff, tChute1, tChute2);
timeBackUnder1000 = helper.timeReturnd1000(tJet, tEngineOff, tChute1, tChute2);
chute1OpenVel = helper.velCoasting(tChute1, tJet, tEngineOff, tChute1, tChute2);
chute2OpenVel = helper.velChute1open(tChute2, tJet, tEngineOff, tChute1, tChute2);

c = real([ 
      oneMile - dist1000
      totalD - 10*oneMile
      9.5*oneMile - totalD
      timeBackUnder1000 - tChute1
      tEngineOff - timeBackUnder1000
      chute1OpenVel - mph2mps(600)
      chute2OpenVel - mph2mps(350)
      ]);
  
  
ceq = [];

end

function y = mph2mps(x)
 y = x*1609.344/3600;
end

Contact us