lsqlin Failure! Why is the simple example provided by MATLAB failing to execute?
Ältere Kommentare anzeigen
I recently discovered the MATLAB optimization routine lsqlin. I attempted to run a simple 'MATLAB-approved' example to get a feel for the function: http://www.mathworks.com/help/toolbox/optim/ug/lsqlin.html. The example is written slightly beyond the middle of the page. I executed a simple copy/paste of the code, but received the following error message:
>> [x,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b,[ ],[ ],lb,ub);
Warning: Large-scale algorithm can handle bound constraints only; using medium-scale algorithm instead.
> In lsqlin at 286
Optimization terminated.
I tried executing the function again, but this time without referencing the final four parameters:
>> x = lsqlin(C,d,A,b);
Warning: Large-scale algorithm can handle bound constraints only; using medium-scale algorithm instead. > In lsqlin at 286 Optimization terminated.
I am running MATLAB 2009b and have verified that the Optimization Toolbox is installed. Any help is appreciated.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Linear Least Squares finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!