Initializing help system before first use

is_fixed

is_fixed


Purpose
Returns true if the variable passed in argument has a domain reduced to a singleton.
Synopsis
function is_fixed(var:cpvar) : boolean
function is_fixed(var:cpfloatvar) : boolean
Argument
var 
the decision variable
Return value
true if var has been instantiated
Example
The following example shows how to see if a cpvar var is instantiated
if is_fixed(var) then
  write('value of var is ', getval(var))
end-if
Related topics