Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  getIntervalVarArray method

    Posted 01/09/19 05:31 AM

    Originally posted by: istenc


    Hello,

    I generate my own constraint in cpoptimizer and i need to use a method like "cp.getIntervalVarArray ( an interval variable array)" in the ILOCPCONSTRAINTWRAPPER macro, however such a method does not exist.

    How can i get the interval variable array in this case?

    Thanks in advance,

    İstenç


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: getIntervalVarArray method

    Posted 01/10/19 04:25 AM

    Originally posted by: Petr Vilím


    Hello,

    indeed, function getIntervalVarArray does not exist. There is only getInterval, so you have to iterate over the array and get the intervals one by one. You may have a look at delivered example cpoptimizer/examples/src/cpp/schedsearch_permutation.cpp which does exactly that in IloSamePermutation (defined using macro ILOCPCONSTRAINTWRAPPER5).

    Note also that since version 12.8 the function getInterval moved from IloCP to new class IloCPEngine. Here is the new documentation:

    https://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.8.0/ilog.odms.ide.help/refcppopl/html/classes/IloCPEngine.html#method_getInterval

    And here is more information about the change:

    https://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.8.0/ilog.odms.studio.help/CP_Optimizer/Release_notes/topics/relnotes_V1280_cpengine.html

    Best regards, Petr


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: getIntervalVarArray method

    Posted 01/10/19 05:52 AM

    Originally posted by: istenc


    Thanks for quick and clear response.

    Best, İstenç


    #CPOptimizer
    #DecisionOptimization