FRAMES NO FRAMES

IloSolveOnce

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

This function creates and returns a goal in a Concert Technology model. This returned goal will solve goal (the one passed as an argument) in a nested search. This returned goal will search for exactly one solution of goal (the argument goal). Other solutions will not be tried. If the nested search fails, then the returned goal fails. If the nested search succeeds, the search will continue from the solution of the nested search.

This function returns an instance of IloGoal for use with the member functions IloSolver::startNewSearch and IloSolver::solve. An instance of IloSolver extracts the goal that this function returns as an instance of IlcGoal for use during a Solver search.

See Also: