BYU-PRISM / GEKKO

GEKKO Python for Machine Learning and Dynamic Optimization
https://machinelearning.byu.edu
Other
580 stars 103 forks source link

Catch derivative error y.dt (no parenthesis) #67

Open APMonitor opened 4 years ago

APMonitor commented 4 years ago

Gekko has a non-descriptive error when defining a differential equation when the parenthesis are left off the expression such as:

# incorrect
m.Equation(y.dt==-y)

versus the correct form with parenthesis:

# correct
m.Equation(y.dt()==-y)

Is there a way to catch this error with a more specific message?