Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Error variable convex

    Posted 02/17/20 03:53 AM

    Originally posted by: Valentin_J


    Hi everyone,

    I'm trying to programing a Dial a Ride Problem on cplex, but I've got a trouble.

    do you know what is Error 5002 ? it says that one of my variable 'q1' is not convex. what does it mean ?

    Have a good day,

    Valentin.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Error variable convex

    Posted 02/17/20 04:50 AM

    Originally posted by: Valentin_J


    My bad,

    It was a simple fix, you actually can't do a variable times a boolean one.

    So you can just check if your boolean is True then the constraint. 

    Here is an example :

    (x[i][j][k]==1) => (u[j][k]>=(u[i][k]+d[i]+t[i][j]))

    if x is True imply that u greater than or equal to "blabla"

     

    Have a nice day !

     

    Valentin.

     

     


    #CPLEXOptimizers
    #DecisionOptimization