Originally posted by: erinas
{string} C=...;
int T =...;
range time= 0..T;
int D[K][T][C]
int TranspT [R][N][N]
s.t.
forall (n1,n2 in N, t in min (TranspT [r][n1][n2], 1) ..T)
sum ( n1 in N, r in R) X[r][t- TranspT [r][n1][n2]][k][o1][o2][n1][n2] == D[k][t][c];; (Constraint 1)
(this is not the whole model, just the constraint and the explanation of the expressions it contains)
Consider the code above, In (constraint 1) I want t to range between min (TranspT [r][n1][n2], 1) to T. Is it possible to use such an expression in the constraint indexes? I want the index to start by choosing between the minimum of two values: TranspT [r][n1][n2] or 1. I have here an issue in expressing the minumum of these two options: TranspT [r][n1][n2] or 1.
Cplex keeps saying that I made syntax error. What could be a possible reason?
Thank you,
#DecisionOptimization#OPLusingCPLEXOptimizer