Originally posted by: SystemAdmin
[shaw said:]
Hello again,
By randomizing the order of your neighborhood and then picking the first neighbor
(IloFirstSolution), you are doing the same thing as picking a random solution from
the neighborhood. Note that if you are doing VNS, then I think you should randomize
each sub-neighborhood individually. For example:
IloNHood bigNHood = IloRandomize(env, nhood1) + IloRandomize(env, nhood2) + IloRandomize(env, nhood3)
If you then select using IloFirstSolution, you will get a random solution from nhood1 if
one exists, otherwise you will get a random solution from nhood2 if one exists, otherwise
you will get a random solution from nhood3 if one exists.
Is it any clearer?
Paul
#CPOptimizer#DecisionOptimization