Initializing help system before first use

getval

getval


Purpose
This function returns the instantiation value of a variable passed in argument. Note that the variable must be instantiated before calling this function, else it will return its lower bound.
Synopsis
function getval(x:cpvar) : integer
Argument
the decision variable
Return value
The instantiation value of x (or by default its lower bound)
Example
The following example shows how to get the instantiation value of a cpvar X
val:=getval(X)
Related topics