You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dividing a Gekko variable by a negative number in an intermediate definition causes a "Multiple operators" error. It looks like it needs another set of parenthesis.
from gekko import GEKKO
m = GEKKO()
a = m.Var()
b = -1
c = m.Intermediate(a/b)
m.solve()
*** Error in syntax of function string: Multiple operators
The text was updated successfully, but these errors were encountered:
Dividing a Gekko variable by a negative number in an intermediate definition causes a "Multiple operators" error. It looks like it needs another set of parenthesis.
The text was updated successfully, but these errors were encountered: