Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Problem: dvar in if-constraint

    Posted Tue November 29, 2011 04:58 AM

    Originally posted by: John85655


    Hi,

    I have a further problem or I rather need a helpful idea:
    i have
    dvar int+ x[s][t][l]; 
    forall (s in S)
    if (x[s][1][2] !=0)
        x[s][1][1] + x[s][1][3]
    


    Unfortunately I can't use a dear in if. But I don't know yet if x gonna be 0 or not.
    Does anyone has an idea how to solve my problem?

    Thank you!!
    John
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Problem: dvar in if-constraint

    Posted Tue November 29, 2011 06:09 AM

    Originally posted by: SystemAdmin


    I don't understand the constraint. What should happen to the sum of the two x variables (1) and (3) when the value of x variable (2) is non-zero?

    Are the variables really general integers without upper bound, do they have a finite upper bound, or are they in fact binary variables?

    Tobias
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Problem: dvar in if-constraint

    Posted Tue November 29, 2011 11:45 AM

    Originally posted by: John85655


    Sorry,
    the sum should be 0.
    Thanks,
    John
    #CPLEXOptimizers
    #DecisionOptimization