FRAMES NO FRAMES

IloTest

public IloGoal IloTest(IloEnv env, IloMetaHeuristic mh)
public IloGoal IloTest(IloEnv env, IloMetaHeuristic mh, IloNeighborIdentifier nid)
public IlcGoal IloTest(IloSolver solver, IloMetaHeuristic mh, IlcNeighborIdentifier nid)
public IlcGoal IloTest(IloSolver solver, IloMetaHeuristic mh)
Definition file: ilsolver/iimls.h
Include file: <ilsolver/iimls.h>

These functions return a goal which tests if the current variable instantiation is consistent with a metaheuristic.

If specified, nid is used to communicate the index and the delta of a neighbor supplied by goals IloScanDeltas and IloScanNHood.

Conversely, when no delta is specified, these functions return a goal that calls mh.test(solver, IloSolution()). If the testing method does not cause a failure and returns IloTrue, the goal succeeds. Otherwise it fails.

See Also: