Modeling a constraint in GMPL
-
18-06-2021 - |
Question
I'm trying to model this constraint in GMPL.
As far as I can understand, j:dij < Dk part means " all the 'j's which satisfies the property dij < Dk "
I'm pretty new to it so I couldn't manage to model it correctly. Any suggestions?
Solution
Ok, did it this way:
s.t. c3{i in N, k in K} : z[k] + sum{j in M : d[i,j] < b[k]} y[j] >= 1;
"b" is used in case of "D".
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow