Originally posted by: Y9AX_Pooyan_Kazemian
Hi,
I describe My problem with an example. Suppose we want to write the following in CPLEX:
Sum(i from 5 to 10) sum(j form 1 to i) x_ij <= 100
The problematic part is the second summation that goes from 1 to i.
In CPLEX I write:
forall (i in 1..10 , j in 1..i) const: x[i][j]<=100;
It returns the following error:
“Constraint labeling not supported for dimensions with variable size, use named constraints instead.”
There should be a way to write the summation when it’s dependent to the preceding summation. Any help is appreciated?
Thanks,
Pooyan
#DecisionOptimization#OPLusingCPLEXOptimizer