Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Using SOL-File/ MST-File as MIP-Start in CPLEX Optimization Studio 12.5

  • 1.  Using SOL-File/ MST-File as MIP-Start in CPLEX Optimization Studio 12.5

    Posted Mon November 18, 2013 04:55 AM

    Originally posted by: svojoe


    Im working on a rather complex MIP Problem, that i need to solve using the CPLEX Interactive Optimizer (working on an external server). To wirk with the solution I have CPLEX returning a .sol File. 

    Now I need to read the .sol File into my model or run-configuration as a feasible solution to to run the model of off.

    The reason I am trying to to this is, that I have a number of expression specified in my model to which I need the resulting values (which I would then like to write to Excel using commands in my .dat File). The interactive Optimizer obviously does not specify my expressions in the solution file. 

    Is there any way to do this, to read a .sol file (or .mst file i suppose) into a run-configuration in IBM ILOG Cplex Optimization Studio 12.5?

     

    Any sort of help would be greatly appreciated!

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Using SOL-File/ MST-File as MIP-Start in CPLEX Optimization Studio 12.5

    Posted Mon November 18, 2013 06:22 AM

    Since this question seems to relate to ILOG Script and OPL you may be better off asking it on the OPL Forum.

    What I know you can do is to use a scripting block like this:

    main {
       thisOplModel.generate();
       cplex.addMIPStart(...);
       cplex.solve();
    }

    See also here for more information about addMIPStart() and the IloCplex class. The arguments for addMIPStart() you could read from the .sol or .mst files. Although this will work, there may be better ways and you should turn to the OPL Forum :-)

    In your specific case it might even be an option to transform the .mst or .sol file into something that can be used as a .dat file and use that to fix the variables in your model (instead of solving it again with a particular MIP start).


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Using SOL-File/ MST-File as MIP-Start in CPLEX Optimization Studio 12.5

    Posted Mon November 18, 2013 06:50 AM

    Originally posted by: svojoe


    Thanks a lot!!

    I have tried to use

    cplex.addMIPStart(...);

    but I get an error in return saying that the property "addMIPstart" ist unknown. 

    As advised I will try in the OPL Forum.

    Thanks again!

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Using SOL-File/ MST-File as MIP-Start in CPLEX Optimization Studio 12.5

    Posted Mon November 18, 2013 08:29 AM

    Make sure you do not have typos here. It is addMIPStart (capital S).


    #CPLEXOptimizers
    #DecisionOptimization