problem.chgbounds
problem.chgbounds |
Purpose
Changes the bounds on columns in the problem.
Synopsis
problem.chgbounds (mindex, qbtype, bnd)
Arguments
mindex
|
Array containing the indices of the columns on which the bounds will change.
|
||||||
qbtype
|
Character array indicating the type of bound to change:
|
||||||
bnd
|
Array giving the new bound values.
|
Example
The following changes column
0 of the current problem to have an upper bound of
0.5:
p.chgbounds ([0,1,2],['L','U','B'],[1,2,3])
Further information
1. A column index may appear twice in the
mindex array so it is possible to change both the upper and lower bounds on a variable in one go.
2.
chgbounds may be applied to the problem in a presolved state, in which case it expects references to the presolved problem.
3. The double constant
xpress.infinity can be used to represent plus and minus infinity in the bound (
bnd) array.
4. If the upper bound on a binary variable is changed to be greater than 1 or the lower bound is changed to be less than 0 then the variable will become an integer variable.
Related topics