Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  relax and unrelax binary variables

    Posted 06/08/11 01:00 PM

    Originally posted by: dbaena


    Hi,

    I need to know how can I change the conversion of a variable more than once.
    For example, I have a x1,x2 and x3 variables.

    At first, the three variables are binary.

    I need to relax x2 and x3 and solve the IP problem. After I need to put x2 and x3 how binary variables and solve again the problem.

    In cplex, using Iloconversion, i obtain:

    Concert exception caught: MultipleConversionException: IloCplex can not handle multiple variable type conversions

    How can I do it?

    Thanks a lot!!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: relax and unrelax binary variables

    Posted 06/08/11 05:56 PM

    Originally posted by: SystemAdmin


    Use an IloConversion to change a variable from binary to real. To restore it as binary, delete the conversion from the model (don't add a new conversion on top of it).

    Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization