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

optimisationSymbolic(x0)
%
% Copyright 2012 The MathWorks, Inc.
function [x,fval,exitflag,output,lambda,grad,hessian] = optimisationSymbolic(x0)

lb = [0, 0, 0, 0];
ub = [Inf, Inf, Inf, Inf];
A = [1 -1 0 0;
     0 1 -1 0;
     0 0 1 -1];
b = [0; 0; 0];   


%% This is an auto generated MATLAB file from Optimization Tool.
%% Start with the default options
options = optimset;
%% Modify options setting
options = optimset(options,'Display', 'iter');
options = optimset(options,'Algorithm', 'interior-point');
[x,fval,exitflag,output,lambda,grad,hessian] = ...
fmincon(@objectiveFcnSymbolic,x0,A,b,[],[],lb,ub,@constraintFcnSymbolic,options);

Contact us