Replies: 3 comments 6 replies
-
Usually, you can model this with additional selection variables, e.g.: then add constraints such that only one can be selected (set to 1) and the orginal variable
Now |
Beta Was this translation helpful? Give feedback.
-
I suggest you use a constraint programming approach instead of mixed integer linear programming (what pulp does) |
Beta Was this translation helpful? Give feedback.
-
I recently posted under the CBC discussions regarding creating Bucket Variables and was answered that this already exists in COIN-OR CBC Engine. Does PuLP allow such variable definition presently? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to take numbers from a particular bucket in the case of finding integer solutions?
Say I wish to use the numbers [8,3,45,67,90,23,75,34,190]
so that the solver only uses these numbers for calculating the values of the variables which also shall be a combination of these numbers.
Presently my requirement is to use 9 integer numbers in this bucket.
I found that if these are consecutive integers, then I might use upper bound and lower bounds and create the variable as a LpInteger type. However, if the numbers are arbitrary or from a different sequence, how may I use only these numbers so that the solver them only?
Beta Was this translation helpful? Give feedback.
All reactions