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?
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?