| Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXchgbds is used to change the upper or lower
bounds on a set of variables of a problem. Several bounds can be changed at
once, with each bound specified by the index of the variable with which it
is associated. The value of a variable can be fixed at one value by setting
the upper and lower bounds to the same value.
Example
status = CPXchgbds (env, lp, cnt, indices, lu, bd);
lu[j] | = 'U' | bd[j] is an upper bound |
lu[j] | = 'L' | bd[j] is a lower bound |
lu[j] | = 'B' | bd[j] is the lower and upper bound |
| env | A pointer to the CPLEX environment as returned by |
| lp | A pointer to a CPLEX problem object as returned by |
| cnt | An integer that indicates the total number of bounds to be changed, and thus specifies the length of the arrays |
| indices | An array of length |
| lu | An array of length |
| bd | An array of length |