Solving Equations Numerically, Numerical Solver
显示 更早的评论
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 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!