r = a + b − x * max (min (2a − b, 2b − a) , 0)
Thank you in advance
Frank
--
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/b6ac88d4-3b98-4c13-b1cf-046c5535c940%40googlegroups.com.
The standard way to do this is:y <= 2a-by <= 2b-az >=0z>= yr = a + b - x * z
On Sat, Aug 31, 2019 at 10:14 AM Frank Meissner <pyth...@gmail.com> wrote:
Hello,--could someone please explain how to write min() and max() formulations in Pyomo for a MIP in GLPK?I have following constraint, whereby a and b are control variables:r = a + b − x * max (min (2a − b, 2b − a) , 0)
Thank you in advance
Frank
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...@googlegroups.com.