Originally posted by: reru90
Hello, everybody,
how can I write additional just to this constraint that [j-1] equals to zero. Because it will always start [j] from zero and in this case it will be [0-1]=[-1]. I need 0 result for this case for Startservicezeit[k][j-1] if j=0. Startservicetime cannot accept negative values.
forall (k in Machines)
(sum(i,j in PatientenundDepots)(Startservicezeit[k][j]) ==
sum(i,j in PatientenundDepots)(Distanz[i][j] +
Startservicezeit[k][j-1]);
best regards.
#CPLEXOptimizers#DecisionOptimization