Solving Equations Numerically, Numerical Solver

7 visualizaciones (últimos 30 días)
varun jain
varun jain el 13 de Mzo. de 2012
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) or is 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).
The answers I obtain using fsolve look as expected but I can not test the code for all possible cases as it could vary as per the input by the user in GUI.
Please suggest if the current approach is reasonable or what other solver could be better.
Thank you.
Varun

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by