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