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
I am trying to code a problem in PuLP where I have a list of variables and I want to have a constraint on it where the minimum (excluding 0) of the list is greater than a value.
Example, if the list has [2, 3, 0, 0, 5], the minimum above 0 in this is 2. I want the constraint to be 2 > user_value
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to code a problem in PuLP where I have a list of variables and I want to have a constraint on it where the minimum (excluding 0) of the list is greater than a value.
Example, if the list has [2, 3, 0, 0, 5], the minimum above 0 in this is 2. I want the constraint to be 2 > user_value
Any inputs on this are welcome. TIA!
Beta Was this translation helpful? Give feedback.
All reactions