Decision Optimization

 View Only
  • 1.  Feature Request

    Posted Tue August 11, 2009 01:27 PM

    Originally posted by: SystemAdmin


    [UDOPS said:]

    I wish there was a way I could abort a MIP that had been running for a long time (without any imminent optimality) and save the incumbent solution.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Feature Request

    Posted Tue August 11, 2009 11:20 PM

    Originally posted by: SystemAdmin


    [jalloyd said:]

    You can do this already.  I believe this works if you abort through the IDE, but if you are not using the IDE to fire off your runs (as I am not), then you will need to create your own oplrun wrapper and use MIPInfoCallback in java.  Then you can use abort (which will post process the last incumbent) by calling the "abort();" method.  If you simply want to post process an incumbent (and not abort), you will need to send a signal, catch it, then call something like "postProcessIncumbent(getCppImpl(opl.getCplex()));"

    Hope this helps.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Feature Request

    Posted Thu August 13, 2009 08:49 PM

    Originally posted by: SystemAdmin


    [UDOPS said:]

    Previously I used ampl and cplex 10, and I believe my request was not possible in that configuration. I am using OPL 6 now, and would be pleased to know how to stop a run and retrieve the solution, preferably with the option to continue my OPL script post processing.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Feature Request

    Posted Fri August 28, 2009 07:27 PM

    Originally posted by: SystemAdmin


    [jfk said:]

    you have to create a .ops setting file and add it to the runconfig. Then you have to set the "postprocess at feasible solution" at Language>Run.
    btw you can put breakpoints in (main) script code...

    I hope it helps

    cheers
    #DecisionOptimization
    #OPLusingCPLEXOptimizer