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.

linprogsubject toFirst, enter the coefficientsf = [-5; -4; -6]A = [1 -1 13 2 43 2 0];b = [20; 42; 30];lb = zeros(3,1);Next, call a linear programming routine.[x,fval,exitflag,output,lambda] = linprog(f,A,b,[],[],lb);Entering x, lambda.ineqlin, andlambda.lower getsx =0.000015.00003.0000lambda.ineqlin =01.50000.5000lambda.lower =1.0000008-135

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

Saved successfully!

Ooh no, something went wrong!