Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  generating cuts with and without presolve

    Posted 09/17/10 07:44 AM

    Originally posted by: davidoff


    Hello

    I'm adapting the C sample admipex6.cpp to output a particular set of cuts generated by Cplex on a given MIP model.
    Basically, I'm first setting all parameters for the other cuts to -1 ( e.g
    CPXsetintparam (env, CPX_PARAM_CLIQUES , -1)
    
    ...)

    Then printing the current LP file during each call to the solve callback.

    I tried to deactivate the presolve in this callback : I commented the line
    status = CPXgetprestat (env, mip, &prestat, NULL, NULL, NULL, NULL);
    


    But apparently, the cuts seems exactly the same. And there are clearly some informations on variable bounds that let me think that the presolve has been done however.

    Is that the correct way to proceed ?

    Thanks

    David Gravot
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: generating cuts with and without presolve

    Posted 09/17/10 08:03 AM

    Originally posted by: SystemAdmin


    You cannot disable presolve from a callback.
    You must disable presolve before you start the solve (CPXmipopt()).
    In order to disable presolve set integer parameter CPX_PARAM_PREIND tp CPX_OFF.
    #CPLEXOptimizers
    #DecisionOptimization