The following code generates a concatenation of neighborhoods. The set of neighbors of the new neighborhood is the union of the neighbors of nhoods
or nhood1
and nhood2
, depending on the signature used.
IloNHood IloConcatenate(IloEnv env,
IloNHoodArray nhoods,
const char *name = 0);
IloNHood operator + (IloNHood nhood1, IloNHood nhood2);
|
The following code generates a neighborhood which behaves exactly like nhood
, except that the generated neighborhood adjusts the indices passed to nhood
. The adjustment is based on the previously accepted move. If the index (as passed to nhood
) of the previous move accepted was k, then the indices passed to nhood
will begin at k + offset + 1 modulo the size of the neighborhood for the next move.
IloNHood IloContinue(IloEnv env,
IloNHood nhood,
IloInt offset = 0,
const char *name = 0);
|