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> Tool-9*x(1)^2 - x(2)^2 + 9-x(1)^2 + x(2)-x(2)^2 + x(1)];ceq = [];Step 3: Set up and run the problem with the <strong>Optimization</strong> Tool.1 Enter optimtool in the Command Window to open the <strong>Optimization</strong> Tool.2 Select fmincon from the selection of solvers and change the Algorithmfield to Medium scale.3 Enter @objfun in the Objective function field to call the M-file objfun.m.4 Enter [3; 1] in the Start point field.5 Define the constraints.• To create variables for the equality constraints, enter [-1 -1] in theA field and enter -1in the b field.• Set the bounds on the variables to be 0.5 ≤ x 1by entering 0.5 for Lowerand Inf for Upper.• Enter @nonlconstr in the Nonlinear constraint function field to callthe M-file nonlconstr.m.5-48

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

Saved successfully!

Ooh no, something went wrong!