FRAMES NO FRAMES

IloSetValue

public IloGoal IloSetValue(const IloEnv env, const IloNumVar var, IloNum value)
Definition file: ilsolver/ilosolverint.h
Include file: <ilsolver/ilosolver.h>

This function creates and returns a goal for the constrained numeric variable var and sets value as its value.

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.

For more information, see IloNullIntersect.

This function works on numerical variables of type Float and type Int.

See Also: