Numeric Solver
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello,
I have a question regarding the numerical solvers available in Matlab I have a total of 24 equations with 23 variables(not all equations include all variables). --> f(x)=[f1(x);f2(x)....f24(x)] ; x being vector =[x1;x2....x23].
The question is : Can I use "fsolve" to solve equations of such form even though not all the equations are non-linear (7 equations being linear). Also the Numeric Solver automatically chooses the levenberg-marquardt algorithm and not the trust-region-dogleg. Is it because of the linear equations ?
The results I get using "fsolve" appear to be as expected for the cases I have tested, but as I can not check for all cases I wanted to know such an approach is reasonable.
Or will it better to use fminunc/fmincon by transforming the functions to the form: f(x)=sqrt(f1(x)^2+ f2(x)^2+......f24(x)^2).
Please reply back as soon as possible. Thank you.
Varun
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!