Originally posted by: BhavnaJha
How do I code an eqn which represents flow balance like
sum (q in 1..n) x[q][i][j] == sum (p in 1..n) y[i][p][j] ; for all i and j
When I code it like this , it executes it as,
sum (q in 1..n) ( x[q][i][j] == sum (p in 1..n) y[i][p][j] ) //Sums over this whole expression
What I want it to do is,
(sum (q in 1..n) x[q][i][j] ) == ( sum (p in 1..n) y[i][p][j] )
Will putting parantheses help?
I did put them but output is still the same, as in I think it is still evaluating it in the previous way.
#DecisionOptimization#OPLusingCPLEXOptimizer