Decision Optimization

Decision Optimization

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

 View Only
  • 1.  How to use MIP start with interactive optimizer

    Posted Fri September 10, 2010 10:29 AM

    Originally posted by: rahul123don


    Hi,
    I want to start my MIP with an initial feasible solution. I have came to know that ILOG can pick up the solution from a .MST or .SOL file. Can anybody help me with the block of code that need to be put in for cplex to write the output in these format of files. Also subsequently, I will need to import this solution to give it as MIP start. Please help me the code snippet of that too. I am using interactive optimizer. Please help, this is urgent.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to use MIP start with interactive optimizer

    Posted Fri September 10, 2010 11:42 AM

    Originally posted by: SystemAdmin


    To write the file:
    read model.lp
    opt
    write start.mst
    

    To read the file
    read model.lp
    read start.mst
    opt
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: How to use MIP start with interactive optimizer

    Posted Fri September 10, 2010 05:00 PM

    Originally posted by: rahul123don


    Thanx for replying Daniel.

    I wrote

    execute PARAMS {
    cplex.writelevel = 1;
    cplex.WriteSolution("start.mst");
    }

    but this gives the error as " unknown property 'WriteSolution' "

    How do I write my solution?
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: How to use MIP start with interactive optimizer

    Posted Sun September 12, 2010 01:38 AM

    Originally posted by: GuangFeng


    It looks like you are using OPL Script. To provide a solution to a problem, you can refer to the sample warmstart (<CPLEX_Studio122>\opl\examples\opl\warmstart).

    To write a solution of an OPL model to a file, you need to use IloOplModel.printSolution().
    #CPLEXOptimizers
    #DecisionOptimization