Originally posted by: Janisch
Hello,
is there a way to limit the length of a sequence? In the attached picture I tried to graph my problem. Each of these sequences should be less than or equal to N * 120.
This is my attempt. But it doesn´t work:
forall(s in 1..S){
min(i in 1..N) startOf(station[i][s][1])-max(i in 1..N) endOf(station[i][s][1])<=c*N; //my attempt to integrate this constraint into the model
min(i in 1..N) startOf(station[i][s][2])-max(i in 1..N) endOf(station[i][s][2])<=c*N;
}
I also attached my model and an example dat file.
regards
#DecisionOptimization#OPLusingCPOptimizer