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.

lsqlin0.6721];lb = -0.1*ones(4,1);ub = 2*ones(4,1);Next, call the constrained linear least-squares routine.[x,resnorm,residual,exitflag,output,lambda] = ...lsqlin(C,d,A,b,[ ],[ ],lb,ub);Entering x, lambda.ineqlin, lambda.lower, lambda.upper producesx =-0.1000-0.10000.21520.3502lambda.ineqlin =00.23920lambda.lower =0.04090.278400lambda.upper =0000Nonzero elements of the vectors in the fields of lambda indicateactive constraints at the solution. In this case, the second inequalityconstraint (in lambda.ineqlin) and the first lower and second lowerbound constraints (in lambda.lower) are active constraints (i.e., thesolution is on their constraint boundaries).8-162

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

Saved successfully!

Ooh no, something went wrong!