Minimize a function to a desired value
Show older comments
Hello everyone, i need your help :)
I have a function that returns a vector D and a vector of variables L. i want to minimise D starting from an initial vectror L0.
I am using "lsqnonlin". L=lsqnonlin(fun,L0,lb,ub).
it works perfectly, however i want D to be minimised to a certain value that i define. The bounds of the solver are set for L not D.
So my question is: how do i define the value of D to be minimised to?
i hope i was clear enough. i cant give the code since it is a very big one.
Thanks in advance :)
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!