Originally posted by: SystemAdmin
[shaw said:]
Hello,
Assuming you have:
IloNHood nhood = nh1 + nh2 + nh3 + nh4 + nh5;
Then you can use the class IloNeighborIdentifier which you pass to IloSingleMove.
When a move is taken, you can get the index of the winning move via:
IloInt idx = IloIIM(solver).getAtIndex(neighborhoodIdentifer)
You can then compare this index against the sizes of the subordinate
neighborhoods to find the winning neighborhood. So:
idx -= nh1.getSize();
if (idx < 0) nh = 1;<br />idx -= nh2.getSize();
if (idx < 0) nh = 2;<br />//etc.
Paul
#CPOptimizer#DecisionOptimization