Non linear system with parameters

2 vues (au cours des 30 derniers jours)
diana bartolome
diana bartolome le 16 Mar 2016
Modifié(e) : Torsten le 16 Mar 2016
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

Réponses (1)

Torsten
Torsten le 16 Mar 2016
Modifié(e) : Torsten le 16 Mar 2016
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.

Catégories

En savoir plus sur Surrogate Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by