getvartolset


Purpose
Get the tolerance set for an SLP variable
Synopsis
function getvartolset(Var:mpvar) :integer
Argument
Var 
The SLP variable whose tolerance set is to be returned
Return value
The index of the tolerance set for the variable. If the variable is not an SLP variable, or has the default tolerances, the return value is zero.
Example
The following code fragment finds the tolerance set for variable Var(3):
declarations
 Var:array (1..10) of mpvar
 Status, TolSet: integer
end-declarations

Status := getstatus(Var(3))
if bittest(Status,1048576) <> 0 then
 writeln("Var(3) is not an SLP variable")
else
 TolSet := getvartolset(Var(3))
 writeln("Var(3) has tolerance set number ",TolSet)
end-if
Further information
Use getstatus and test bit 20 (=1048576) to check if the variable is an SLP variable.
Related topics
chgtolset, chgvartolset, getstatus, gettolset


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.