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.

fminconSince both constraints are linear, formulate them as the matrixinequality whereNext, supply a starting point and invoke an optimization routine.x0 = [10; 10; 10]; % Starting guess at the solution[x,fval] = fmincon(@myfun,x0,A,b)After 66 function evaluations, the solution isx =24.000012.000012.0000where the function value isfval =-3.4560e+03and linear inequality constraints evaluate to be less than or equal to 0.A*x-b=-720NotesLarge-Scale <strong>Optimization</strong>To use the large-scale method, you must• Supply the gradient in fun• Set GradObj to 'on' in options8-49

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

Saved successfully!

Ooh no, something went wrong!