Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to avoid constraint repetition?

    Posted 12/12/14 01:22 PM

    Originally posted by: maiklb2005


    Hi all, I am iteratively adding CPLEX-generated cuts to the formulation. It appears that CPLEX generates cuts with labels that coincide with cut or constraint labels that are already in the formulation. When I add newly-generated cuts back to the formulation, the following situation occurs (please see the screenshot attached). Having different cuts/constraints within the formulation under same name is problematic. I was wondering if there is a way to avoid it. Thank you. 


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to avoid constraint repetition?

    Posted 01/06/15 04:02 AM

    The names that CPLEX generates for cuts are always of the form

    <character><number>

    where <character> is a single character and <number> is a decimal number. So, if you use a different naming pattern (for example two characters instead of one) there should be no name clashes. Or are you saying that CPLEX generates two cuts of the same name?

    Note that cuts and constraints are in different namespaces, so in general a cut and a constraint may have the same name. If you read out a cut from CPLEX and then add it as a regular constraint then you need to change the name of the cut to avoid name clashes. In this case the safest thing to do is to always rename a cut before adding it as a constraint -- or to not use names at all if that is possible.


    #CPLEXOptimizers
    #DecisionOptimization