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.

1 Getting Started[x, fval] =lsqlin(C, d, [], [], Aeq, beq)lsqlin returnsx =0.33330.66671.3333fval =2.3333The minimum occurs at the point x and fval isthesquareofthedistancefrom x to the origin.Note In this example, lsqlin issues a warning that it is switching from itsdefault large-scale algorithm to its medium-scale algorithm. This message hasno bearing on the result, so you can safely ignore it. “Using the <strong>Optimization</strong>Functions” on page 2-6 provides more information on large- and medium-scalealgorithms.More ExamplesThe following sections contain more examples of solving optimizationproblems:• “Examples That Use Standard Algorithms” on page 2-9• “Large-Scale Examples” on page 2-40• <strong>Optimization</strong> Tool Example contains the example shown above for lsqlinusing the <strong>Optimization</strong> Tool.1-6

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

Saved successfully!

Ooh no, something went wrong!