Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

How to Solve MIP relaxed with Python API

  • 1.  How to Solve MIP relaxed with Python API

    Posted Tue January 03, 2017 08:31 AM

    Originally posted by: naveendivakaran


    Hi,

     

    How can I solve a MIP relaxed with Python API? I know I can use the integrality tolerance parameter to set a tolerance on integer variables. But I am not sure that is the best way to go about it? Is there a better method?

     

    -Naveen


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to Solve MIP relaxed with Python API

    Posted Tue January 03, 2017 11:50 AM

    To relax a variable just change its type to "continuous". Or use Cplex.set_problem_type() to change the type of the problem to LP.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: How to Solve MIP relaxed with Python API

    Posted Tue January 03, 2017 01:34 PM

    Originally posted by: naveendivakaran


    Thanks for the quick response :)


    #CPLEXOptimizers
    #DecisionOptimization