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.

fminconMedium-Scale Algorithm OnlyThese options are used only by the medium-scale algorithm:MaxSQPIterRelLineSrchBndRelLineSrchBndDurationMaximum number of SQP iterationsallowed.Relative bound (a real nonnegativescalar value) on the line searchstep length such that the totaldisplacement in x satisfiesThis option provides control over themagnitude of the displacements inx for cases in which the solver takessteps that are considered too large.Number of iterations for which thebound specified in RelLineSrchBndshould be active (default is 1)..Examples Find values of x that minimize ,startingatthepointx = [10; 10; 10] and subject to the constraints:First, write an M-file that returns a scalar value f of the functionevaluated at x.function f = myfun(x)f = -x(1) * x(2) * x(3);Thenrewritetheconstraintsasbothlessthanorequaltoaconstant,8-48

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

Saved successfully!

Ooh no, something went wrong!