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.

Typical Problems and How to Deal with ThemTroubleshooting (Continued)ProblemThe minimizationroutine appears toenter an infinite loopor returns a solutionthat does not satisfy theproblem constraints.You do not get theconvergence you expectfrom the lsqnonlinroutine.RecommendationYour objective (fun), constraint (nonlcon, seminfcon), or gradient(computed by fun) functions might be returning Inf, NaN, orcomplexvalues. The minimization routines expect only real numbers to bereturned. Any other values can cause unexpected results. Insertsome checking code into the user-supplied functions to verify thatonly real numbers are returned (use the function isfinite).You might be forming the sum of squares explicitly and returningascalarvalue. lsqnonlin expects a vector (or matrix) of functionvalues that are squared and summed internally.2-101

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

Saved successfully!

Ooh no, something went wrong!