Initializing help system before first use

problem.chgbounds

Purpose
Changes the bounds on columns in the problem.
Synopsis
problem.chgbounds(colind, bndtype, bndval)
Arguments
colind 
Array containing the columns (i.e. xpress.var objects, indices, or names) on which the bounds will change.
bndtype 
Character array indicating the type of bound to change:
indicates a change in the upper bound;
indicates a change in the lower bound;
indicates a change in both bounds, i.e. the column is fixed.
bndval 
Array giving the new bound values.
Example
The following changes the lower bound of variable v1 to 2, upper bound of variable v2 to 5, and fixes variable v3 to 3:
p.chgbounds([v1,v2,v3],['L','U','B'],[2,5,3])
Further information
1. A column may appear twice in the colind 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 constant xpress.infinity can be used to represent plus and minus infinity in the bound ( bndval) 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

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.