Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  about the constraints

    Posted 03/29/12 11:40 AM

    Originally posted by: SongYang


    Dear all,

    I have two variables, one is boolean,say a; the other one is int, say b.
    Now I have a question which is
    I want to define the relationship between a and b in the constraint, when b is bigger than 0 ,a is true; otherwise, a is false.
    How can I do that?

    Thanks in advance
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: about the constraints

    Posted 03/29/12 03:09 PM

    Originally posted by: T_O


    Does b have upper and lower bounds?

    Best regards,
    Thomas
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: about the constraints

    Posted 03/30/12 05:03 AM

    Originally posted by: SongYang


    Yes, let's say, b is between 0 and 10.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: about the constraints

    Posted 03/30/12 06:07 AM

    Originally posted by: SystemAdmin


    Assume general case L<=b<=U

    % Force a to be 1 if b>0
    b <= U*a

    % Force a to be zero if b<=0
    b >= 0.5+(1-a)*(L-0.5)
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: about the constraints

    Posted 03/30/12 08:05 AM

    Originally posted by: SongYang


    thanks man.
    #CPLEXOptimizers
    #DecisionOptimization