How can I manage constraint like y = min{0, x} by using pulp

Viewed 37

I would like to optimise the following constraints using pulp.

if a-b <= 0: x = a -b else: x = 0

Does anyone know How I can write the above logical argument, in a method which can be used in PuLP constraints?

0 Answers
Related