Home:ALL Converter>Modelling of differential and linear equations together in gekko?

Modelling of differential and linear equations together in gekko?

Ask Time:2020-11-18T01:56:12         Author:R. Rahul

Json Formatter

Hello everyone and Gekko developers,

I want to model the following equations for my Thermal Energy Storage Systems,

Differential Algebraic Equations

which are both linear and differential. Some variables are also time dependent, come as external parameters. From the examples of Gekko, it look likes that I can only add equation such as mdl.Equation(T_a.dt() == mt*c_p_w*(T_b-T_a)) / d_w*c_p_w in this format, however for equation not involving differential, I want to add as normal equations also such as mdl.Equation(m[t] == mc - m[t]).

p.s How can I add both styles, and which mode and solver will allow this. ?

Thanks,

Best regards,

Rahul

Author:R. Rahul,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64880717/modelling-of-differential-and-linear-equations-together-in-gekko
yy