Solving Equations Numerically, Numerical Solver

조회 수: 8 (최근 30일)
varun jain
varun jain 2012년 3월 13일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by