Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Load solution

    Posted 10/08/11 05:38 PM

    Originally posted by: Trino


    Hi, is there a way I can load a solution "manually" for the cplex solver? I mean, I have an heuristic that produces a good solution to my problem, of course not the optimal but a good one, and I just want to use this solution as a start point for the solver hoping it'll improve the total time to find the optimal...

    If anyone could point me a direction I would appreciate.

    Thanks in advance.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Load solution

    Posted 10/09/11 05:17 PM

    Originally posted by: SystemAdmin


    Unfortunately, you omitted three key pieces of information: whether you are using the interactive optimizer or an API (and, if the latter, which API); whether you want to load the starting solution via code or read it from a file; and the type of problem (LP, IP, QP).

    Assuming you are using one of the higher-level APIs and will read the solution fromm a file, look for the readSolution and readMIPStarts methods for your API. If you are using the interactive optimizer, the 'read' command is used to read the relevant file. Check the documentation on file formats for .sol and .mst files.

    Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Load solution

    Posted 10/09/11 05:40 PM

    Originally posted by: Trino


    Sorry...

    I'm using Concert Tecnology for c++, the problem is an IP and I want to load the solution via code, not reading from a file.

    Thanks.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Load solution

    Posted 10/10/11 04:43 AM

    Originally posted by: SystemAdmin


    In this case, you want to add a so-called "MIP Start". The method cplex.addMIPStart() is your friend...

    Tobias
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Load solution

    Posted 10/10/11 11:22 AM

    Originally posted by: Trino


    Thank you, i'll take a look at this method!
    #CPLEXOptimizers
    #DecisionOptimization