Pyomo generally uses (and preserves) whatever expression that you provide. The one exception is that all variables have to be in the “body” of the constraint. This means that expressions of the form “f(x) == g(y)” (where x and y are variables) will be converted to “f(x) – g(y) == 0”. Similar things happen to inequalities (“f(x) <= g(y)” goes to “f(x) – g(y) <= 0” and “f(x) >= g(y)” goes to “g(y) – f(x) <= 0”). I don’t see how Pyomo would be negating both sides of your constraint. Can you share the constraint definition that you are using?
John
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pyomo-forum...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyomo-forum/a5b15e2a-4ca4-43e6-977b-701aff2a62edn%40googlegroups.com.