Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Relaxing cplex.or binary variables.

    Posted 11/18/08 03:10 PM

    Originally posted by: SystemAdmin


    [Strider said:]

    I am using cplex 11.0 and I wish to solve the LP relaxation of my MIP model which uses cplex.or (from Java). I know how to use IloConversion to relax binary/integer variables. But each cplex.or seems to make 2 hidden binary variables. How do I relax them?

    I already tried this right before calling cplex.solve()

    IloLPMatrix lp = (IloLPMatrix)cplex.LPMatrixIterator().next();
    IloNumVar[] allNumVars = lp.getNumVars();
    cplex.add(cplex.conversion(allNumVars, IloNumVarType.Float));


    But lp seems to be null.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  LP relaxation with IloOr

    Posted 08/11/09 03:47 PM

    Originally posted by: SystemAdmin


    [Strider said:]

    I still don't know how to get to the binary variables that cplex.or creates.

    Would it be an idea to simulate the working of cplex.or and add the binary variables myself? How would I do this in the same way as cplex?
    #CPLEXOptimizers
    #DecisionOptimization