Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  question on the writeMIPStart method

    Posted 07/25/12 11:48 AM

    Originally posted by: CplexUser1453


    Hello

    I would like to save a solution of an OPL .mod model to an .mst file to be able to do MIP start later on.

    It seems to me that the Cplex.MipStart Method should allow me to do it : IDE and OPL > OPL Interfaces > .NET interface reference manual > ILOG.CPLEX Namespace > Cplex Class > Cplex Methods (suggestion : it would be really nice if I could post a link to the documentation I am talking about - this is not pointing in the right direction http://pic.dhe.ibm.com/infocenter/cosinfoc/v12r4/index.jsp?topic=%2Filog.odms.studio.help%2FOptimization_Studio%2Ftopics%2FCOS_relnotes_intro.html)

    it seems to me that I should be able to write the following .mod file :

    include "myModel.mod"

    main {
    thisOplModel.generate();
    cplex.solve();
    cplex.writeMIPStart('start.mst')
    }

    However I get an "unknown property 'writeMIPStart'" error. What am I missing?
    Thx a lot!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: question on the writeMIPStart method

    Posted 07/26/12 10:34 AM
    Hi,

    writeMIPStart is available in the .NET concert API but not in OPL scripting unfortunately.

    So what you could do is:

    1) Use the writeMIPStart from .NET once you have your CPLEX and OPL .NET objects.

    or

    2) Do an external java call from OPL scripting, you would call writeMIPStart that is also available with the java concert API.

    Regards
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: question on the writeMIPStart method