12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 <strong>Optimization</strong> Toolsubject to the constraintThe function f(x) iscalledtheobjective function andis anequality constraint. More complicated problems might contain other equalityconstraints, inequality constraints, and upper or lower bound constraints.Setting Up the ProblemThis section shows how to set up the problem with the lsqlin solver in the<strong>Optimization</strong> Tool.1 Enter optimtool in the Command Window to open the <strong>Optimization</strong> Tool.2 Select lsqlin from the selection of solvers. Use the default large-scalealgorithm.3 Enter the following to create variables for the objective function:• In the C field, enter eye(3).• In the d field, enter zeros(3,1).The C and d fields should appear as shown in the following figure.4 Enter the following to create variables for the equality constraints:• In the Aeq field, enter [1 2 4].• In the beq field, enter 7.5-52

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

Saved successfully!

Ooh no, something went wrong!