12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Tutorial2.9310e+006Step 2: Call a nonlinear minimization routine with a startingpoint xstart.fun = @brownfgh;load browneq% Get Aeq and beq, the linear equalitiesn = 1000;xstart = -ones(n,1); xstart(2:2:n) = 1;options = optimset('GradObj','on','Hessian','on', ...'PrecondBandWidth', inf);[x,fval,exitflag,output] = ...fmincon(fun,xstart,[],[],Aeq,beq,[],[],[],options);Setting the option PrecondBandWidth to inf causes a sparse direct solver tobe used instead of preconditioned conjugate gradients.The exitflag value of 3 indicates that the algorithm terminated because thechange in the objective function value was less than the specified toleranceTolFun. The final function value is given by fval.exitflag =3fval =205.9313output =iterations: 16funcCount: 17cgiterations: 20firstorderopt: 7.3575e-005algorithm: 'large-scale: projected trust-region Newton'message: [1x86 char]The linear equalities are satisfied at x.norm(Aeq*x-beq)2-60

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!