Non linear system with parameters
2 ビュー (過去 30 日間)
古いコメントを表示
Hi guys, I really need your help to find the solution of a system of equations. I have some experience with matlab and python but I've never used it to solve equations so if someone could give me the solution, code to solve it or some print to do it I would be really thankful.
The system is the following:
MP67*0.67-MPY+89.4969*(1-e^(-0.00186*(MP-MP67)))+203.8*(1-e^(-0.0145*(NEL-NEL1)))==0
NEL1-MEO+6.1151*(1-e^(-0.00209*(MP-MP67)))+6.0013*(1-e^(-0.0239*(NEL-NEL1)))==0
I need the solution for MP67 and NEL1 in function of the other 4 parameters (MPY, NEL, MEO and MP)
I have not too much time as it is the end of a phd and that's why I try to find a shortcut to do it.
Thank you so much, Diana
0 件のコメント
回答 (1 件)
Torsten
2016 年 3 月 16 日
編集済み: Torsten
2016 年 3 月 16 日
mpy=...;
nel=...;
meo=...;
mp=...;
func=@(x)[0.67*x(1)-mpy+89.4969*(1-exp(-0.00186*(mp-x(1))))+203.8*(1-exp(-0.0145*(nel-x(2)))),x(2)-meo+6.1151*(1-exp(-0.00209*(mp-x(1))))+6.0013*(1-exp(-0.0239*(nel-x(2))))];
x0=[1, 1];
sol=fsolve(func,x0);
mp67=sol(1);
nel1=sol(2);
Best wishes
Torsten.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surrogate Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!