Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

Constraint labeling in Summation?

  • 1.  Constraint labeling in Summation?

    Posted 03/15/12 10:07 PM

    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