Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  The best solution for MIPStart

    Posted 11/06/14 12:05 PM

    Originally posted by: 37N6_Michael_Masin


    Hi,

    I would like to store the best MIP solution found so far using writeMIPStart(<file name>, mipStartId);

    Two main candidates for mipStartId are 0 or getNMIPStarts()-1.

    What is the correct answer?

    Thanks,

    Michael Masin


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: The best solution for MIPStart

    Posted 11/06/14 12:10 PM

    The correct function to use here is writeSolution(char const *filename). That will write the incumbent solution (the best solution found) to a file. MIP start and solution files have the same format, so you can use them interchangeably.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: The best solution for MIPStart

    Posted 11/07/14 03:08 PM

    Originally posted by: 37N6_Michael_Masin


    Thank you, I'll try. Should I use readSolution("filename") or readMIPStarts("filename") before  solving again?

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: The best solution for MIPStart

    Posted 11/10/14 02:01 AM

    You should use readMIPStarts().


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: The best solution for MIPStart

    Posted 11/09/14 03:13 AM

    Originally posted by: 37N6_Michael_Masin


    Looks like the incumbent solution is stored among MIPStart solutions with index 0: writeSolution(filename) and writeMIPStart(filename, 0) store the same solution.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: The best solution for MIPStart

    Posted 11/10/14 02:05 AM

    You should not use writeMIPStart() in new code because it is deprecated. It is true that at the moment the best solution is the first MIP start. However, the order of MIP starts is not explicitly specified and may change eventually.

     


    #CPLEXOptimizers
    #DecisionOptimization