Non linear system with parameters

조회 수: 2 (최근 30일)
diana bartolome
diana bartolome 2016년 3월 16일
편집: Torsten 2016년 3월 16일
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

답변 (1개)

Torsten
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.

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by