Purpose
Change values in an SLP tolerance set or create a new set
Synopsis
function chgtolset(TolSet:integer, Status:integer, Tols:array of real) :integer
Arguments
TolSet
|
the number of the tolerance set to be changed. If TolSet is
zero, a new set will be created.
|
Status
|
an integer containing a bitmap of the tolerances being set. For
details of these, see the Xpress-SLP Reference Manual.
|
Tols
|
an array of 9 real values, containing the tolerances.
|
Return value
The number of the affected tolerance set. If TolSet is zero, this will
be the number of the tolerance set created; otherwise it will be equal to TolSet.
Example
The following example creates a new tolerance set (the first argument is zero) and
sets tolerances TA and TM (bits 1 and 2 of Status) to 0.005 and
0.008 respectively. Other tolerances remain at the default. If there are already K
tolerance sets in existence, the return value will be K+1.
declarations
Tols: array(1..9) of real
n: integer
end-declarations
Tols(2) := 0.005
Tols(3) := 0.008
n := chgtolset(0,6,Tols)
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.