Hi,
I am working on the scheduling problem which at one of the constraints there is an if-then statement in the outer loop something like the following:
(for i in I)
(for p in P)
(for t in T)
(for s in S):
p<= i and
if p==i then t!=s
I am trying to write this as follows:
subject to {
forall(i in I,p in P,s in S,t in T: p<=i)
co1:
LHS <= RHS;
forall(i in I,p in P,s in S,t in T: t!=s)
if(p==i) {
co2:
LHS <= RHS;;
}
}
But, I am not sure it is being what I am looking for. I was wondering if, how can I define this?
Best regards
Abbas
------------------------------
Abbas Omidi
------------------------------
#DecisionOptimization