use fsolve with boundaries
Ältere Kommentare anzeigen
Hi,
I wonder if there is a way to use fsolve with boundaries?
I am currently using fsolve for a system of nonlinear equations solving for up to 100 variables. The values I get are ok, but unfortunately not in the bounds I want to look. Is there a way to bound the variables?
Thanks a lot.
Akzeptierte Antwort
Weitere Antworten (2)
Shashank Prasanna
am 22 Jan. 2013
0 Stimmen
Unfortunately as you mentioned FSOLVE does not do constraints as of currently. As an alternative and with no guarantees as always, you can try to use FMINCON with constraints such that it minimizes the |F(x)| in a least square sense there by forcing each equation to zero. Your mileage may vary.
Franziska
am 23 Jan. 2013
0 Stimmen
Kategorien
Mehr zu Nonlinear Least Squares (Curve Fitting) 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!