Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Converting a cplex model from LP to MIP

    Posted 10/29/08 12:33 AM

    Originally posted by: SystemAdmin


    [wenfengli said:]

    I am using C# and cplex to solve a trucking problem. I need to first solve it in LP mode since it could give the sensitivity analysis. Then I need to solve the same problem again under MIP mode. Can anyone help me out? Thanks in advance.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Converting a cplex model from LP to MIP

    Posted 10/29/08 04:20 PM

    Originally posted by: SystemAdmin


    [dgravot@noos.fr said:]

    Look at the Conversion object in the documentation. Basically, you add a conversion to your Cplex solver instance.

    Some examples are provided in C# (Cutstock.cs) :
    cutSolver.Add(cutSolver.Conversion((INumVar)Cut[i],
                                                  NumVarType.Int));

    Here, it converts a float variable into an integer one. You'll have to do the opposite.
    #CPLEXOptimizers
    #DecisionOptimization