Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Dynamic array for explicitValueEval

    Posted 07/07/15 07:18 AM

    Originally posted by: hacimehmet


    Hi,

    I want to use explicitValueEval. Value evaluator explicitValueEval has three parameters, e.g. explicitValueEval(A, B, double). A is an array which consists of the assignable values for related decision variables. B is an array which consists of the weight of assignable values. In this evaluator, these arrays must be pre-defined before beginning of the search phase strategy. If these arrays are dynamic, i.e. the values of these arrays can be changed during the search, the solution space can be scanned faster.  For this, after assigning a value to one of the decision variables, I need to update the values of the array that I use for value selection. How can I update this array's values?

    E.g., we have 5 decision variables (X1,X2,X3,X4,X5). Domain of these decision variables are 1, 2, 3 values and array of which is B and initial value is B={0,0,0}. I use B for assigning to decision variables' values. If any decision variable take any value of B e.g. X1 take value 2, Array B is updated as B={0,1,0}. And then I use updated B for assigning X2 value. For example, If X2 take 1, Array B is updated as B={1,1,0}. This process continues until all decision variables take any values of B.

    Thank you in advance.


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Dynamic array for explicitValueEval

    Posted 07/09/15 10:58 AM

    Originally posted by: Philippe_Refalo


    Unfortunately, the arrays of values in explicit variables and value evaluator are static. You cannot change them during search. The only way to do this would be to define your own variables and values chooser in C++ or Java (but Java is slower due to JNI) but subclassing IloIntVarChooserI or IloIntValueChooserI. You can use them with your OPL model using the C++ interface to OPL.

    Philippe


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: Dynamic array for explicitValueEval

    Posted 07/29/15 11:05 AM

    Originally posted by: hacimehmet


    Thanks for your advice, Philippe

    Is there any example for these functions.


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 4.  Re: Dynamic array for explicitValueEval

    Posted 07/31/15 03:35 AM

    Originally posted by: Philippe_Refalo


    You can have a look at the example SearchPhases.java where there that contains a variable/value chooser coded in Java.

    Regards,

    Philippe


    #DecisionOptimization
    #OPLusingCPOptimizer