FRAMES NO FRAMES

IloAndGoal

public IloGoal IloAndGoal(const IloEnv, const IloGoal, const IloGoal)
Definition file: ilsolver/ilosolverint.h
Include file: <ilsolver/ilosolver.h>

This function creates and returns a goal for use in a search. This goal represents the conjunction (logical AND) of its two goal arguments. You can replace the code IloAndGoal(env, g1, g2) with g1 && g2.

When it takes an instance of the class IloEnv as a parameter, it returns an instance of IloGoal for use with the member functions IloSolver::startNewSearch and IloSolver::solve. An instance of IloSolver extracts the goal that it returns as an instance of IlcGoal for use during a Solver search.

See Also: