Decision Optimization

Decision Optimization

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

 View Only
  • 1.  combine CP and MIP using "with linear relaxation" opl keyword?

    Posted Fri January 24, 2014 07:59 PM

    Originally posted by: qtbgo


    Hi, in this paper  Constraint and Integer Programming in OPL , Hentenryck proposed a model ( see figure 19) which combined CP and MIP using  "with linear relaxation" OPL keyword. I wonder if this method is still supported in OPL 12.6 ? I cannot find any related information in OPL 12.6 mannual.

    Thanks in advance.


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: combine CP and MIP using "with linear relaxation" opl keyword?

    Posted Sat January 25, 2014 03:59 AM

    Originally posted by: davidoff


    As far as I know, there is no generic relaxation mechanism of your CP model, nor hybridation (though hybridation has indeed existed in a very old time of Ilog libraries, namely "planner" that was the LP/MIP engine before the acquisition of CPLEX)

    There is the temporal relaxation IloCP::TemporalRelaxation that triggers linearization of scheduling constraints only, but the documentation of this parameter is not very detailed :

    IloCP.IntParam TemporalRelaxation : Integer control parameter. This advanced parameter can be used to control the usage of a temporal relaxation internal to the invoking IloCP engine. This parameter can take values IloCP.ParameterValues.On or IloCP.ParameterValues.Off, with IloCP.ParameterValues.On being the default, meaning the relaxation is used in the engine when needed. For some models, using the relaxation becomes inefficient, and you may deactivate the use of the temporal relaxation using value IloCP.ParameterValues.Off.

    However, you can "easily" write your own linearization of your CP model, runs it and communicate upper and lower bounds (coming respectively from any integer solution and the bestNode value of your MIP solve. This would be done "statically" since you run the MIP model first and then launch your CP model. Full hybridation between CP search and MIP could be done in API though, not directly in OPL, but this is much more advanced

    David


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: combine CP and MIP using "with linear relaxation" opl keyword?

    Posted Mon April 13, 2015 10:49 AM

    Originally posted by: Rafael Daciuk


    Dear David,

    I'm very interested in your suggestion of CP-MIP hybridation through the API. Do you know if there is an example of that?

    Where could I start this procedure?

    Thanks in advance,

    Rafael


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 4.  Re: combine CP and MIP using "with linear relaxation" opl keyword?

    Posted Tue April 14, 2015 05:24 AM

    Originally posted by: DavidGravot


    Actually, I'm not sure at all that full hybridation is still available  - e.g sharing variables from different solvers

    So, I should say my previous mail is a reminiscence of the old times. However, static hybridation such as the one where you loop between CP and MIP models passing bounds to each other is clearly in the scope of both OPL and APIs


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 5.  Re: combine CP and MIP using "with linear relaxation" opl keyword?

    Posted Tue April 14, 2015 01:08 PM

    Originally posted by: Rafael Daciuk


    Dear David,

    thank you very much for your prompt reply.

    We have tried "static" hybridation by solving a CP model and passing the results as initial solution for a MILP model, but the results were not what we expected in terms of performance. We are actually working in a modelling situation that derives from work done previously using OPL Studio v3.6.1, where we noticed that solving the hybrid model "with linear relaxation" provided great performance improvement.

    From this evaluation, we would really like to work further with a possible integration between the 2 approaches using the API, and we would be very glad if you could point in any direction as to how to best start this.

    Again, thank you very much for your help.

    Regards,

    Rafael


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 6.  Re: combine CP and MIP using "with linear relaxation" opl keyword?

    Posted Wed April 15, 2015 04:59 AM

    Originally posted by: GGR


    Hi

    This parameter is only related with scheduling problem (problem declared thanks to the interval variable language based for temporal problem).

    For full information about this please refer:

    November 2014

    Date: 25 Nov 2014

    Temporal linear relaxation in IBM ILOG CP Optimizer

    Hope that helps

     


    #DecisionOptimization
    #OPLusingCPOptimizer