Initializing help system before first use

problem.chgrhsrange

problem.chgrhsrange


Purpose
Change the range for one or more rows of the problem.
Synopsis
problem.chgrhsrange(mindex, rng)
Arguments
mindex 
Array containing the rows (i.e. xpress.constraint objects, indices, or names) on which the range elements will change.
rng 
Array containing the range values.
Example
Here, the constraint cons1 x + y ≤ 10 is changed to 8 ≤ x + y ≤ 10:
p.chgrhsrange([cons1], [2])
Further information
If the range specified on the row is r, what happens depends on the row type and value of r. It is possible to convert non-range rows using this routine.

Value of r   Row type   Effect
r ≥ 0   = b, ≤ b   b-r ≤ ∑ajxj ≤ b
r ≥ 0   ≥ b   b ≤ ∑ajxj ≤ b+r
r < 0   = b, ≤ b   b ≤ ∑ajxj ≤ b-r
r < 0   ≥ b   b+r ≤ ∑ajxj ≤ b


Related topics