Solving nonlinear systems of equations instead fsolve method

1 回表示 (過去 30 日間)
Mehran Razzaghi Ghaleh
Mehran Razzaghi Ghaleh 2022 年 8 月 10 日
編集済み: Torsten 2022 年 8 月 10 日
Hi everybody, I'm trying to use fsolve to solve my nonlinear equation. but there is a problem that when I change some other parameter like
p=[0,0,0,0,0], the output (eval) will goes to up. The goal is minimising the 'eval', to be zero.
what is your suggestion to find the problem? what other solver I can use? instead fsolve method.
I insert the code here.
f = load('C:f.txt');
t= load('C:t.txt');
L0 = load('C:L0.txt');
centers = [0,20,30;
0,20,-30];
p = [0,0,0,-0.001,0];
load = [0,-100,0,0,0,0];
compute_resultant(p,f,t,L0,centers,load)
% numerical solution
f = @(p)compute_resultant(p,f,t,L0,centers,load);
[p,eval] = fsolve(f,p)
thanks
  1 件のコメント
Torsten
Torsten 2022 年 8 月 10 日
編集済み: Torsten 2022 年 8 月 10 日
We can't tell since we don't know your system of equations (and even if we knew it, maybe we still didn't know).
Maybe you have bad initial guesses for the parameters, maybe your system has no solution.
You could try "MultiStart".

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by