Originally posted by: imanopl
Hello everybody, I have a probably very simple question, I have a 2 dim array ybefore[i][i] and it is an integer variable. I have another variable y[j], how can I write sum(i in 1..Indice1,j in 1..indice2)ybefore[i][[j]=y[j] in constraint programming in OPL. I am trying the following:
forall( i in 1..n ){
sum(j in 1..m) ybefore[ x[i] ][j]<= y[j];} But it seems not working.
P.S: x and y are variable.
#DecisionOptimization#OPLusingCPOptimizer