Initializing help system before first use

problem.bndsa

Purpose
Returns upper and lower sensitivity ranges for specified variables' lower and upper bounds. If the bounds are varied within these ranges the current basis remains optimal and feasible.
Synopsis
problem.bndsa(colind, lblower=None, lbupper=None, ublower=None, ubupper=None)
Arguments
colind 
A list or Numpy array of the variables (or their indices or names), for which the sensitivity range is requested.
lblower 
Array (to be passed as a list, possibly empty) that will contain the variable lower bound lower ranges.
lbupper 
Array for the variable lower bound upper ranges.
ublower 
Array for the variable upper bound lower ranges.
ubupper 
Array for the variable upper bound upper ranges.
Example
problem.bndsa can only be called when an optimal solution to the current LP has been found. It cannot be used when the problem is MIP presolved.
p = xp.problem()
x = p.addVariables(10)
[...]
ll, lu, ul, uu = [], [], [], []
p.bndsa(x, ll, lu, ul, uu)
print("ranges:", ll, lu, ul, uu)
Further information
If the problem is in a presolved state, btran works with the basis for the presolved problem.
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.