문제

I'm trying to model this constraint in GMPL.

Constraint

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?

도움이 되었습니까?

해결책

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".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top