Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX Warmstart

    Posted 03/17/11 05:07 AM

    Originally posted by: Terrion28


    Hello everybody,

    I recently began to test CPLEX (out of C++). In my testcase I would implement a loop in which the solver is called. How do I manage a warmstart here? Until now I use use "IloCplex cplex(model);" to pass and to solve the model. After solving the problem the problem for the first time, I created a warmstart file by using WriteMipStart. No I like to use this file for the other rounds.
    Is it possible to integrate the function ReadMipStart into the mentioned code? If so, it would be very helpful if anybody could help me here.

    Many thanks in advance for the support!

    Kind regards
    Terrion
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX Warmstart

    Posted 03/17/11 05:16 AM

    Originally posted by: SystemAdmin


    You should use writeMIPStarts() and readMIPStarts() (note the trailing 's') instead of the deprecated methods you mentioned.
    In order to read in the MIP start just invoke cplex.readMIPStarts(filename) right before you start cplex.solve().
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX Warmstart

    Posted 03/17/11 09:06 AM

    Originally posted by: Terrion28


    Many thanks for the answer and the additional explanation!
    Everything works fine!

    Best regards
    #CPLEXOptimizers
    #DecisionOptimization