Initializing help system before first use

problem.addIndicator

problem.addIndicator


Purpose
Adds one or more indicator constraints to the problem.
Synopsis
problem.addIndicator(c1, c2, ...)
Argument
c1,c2... 
Tuples containing an indicator constraints, or list/tuples/array of tuples containing a binary condition and a constraint.
Example
x = xpress.var(vartype=xpress.binary)
y = xpress.var(lb=10, ub=20)
z = xpress.var()
ind1 = (x==1, y+z <= 40)
p = xpress.problem()
p.addVariable(x,y,z)
p.addIndicator(ind1)
Further information
All arguments can be single indicator constraints or lists, tuples, or NumPy arrays created as indicator constraints. An indicator constraint is a tuple of two elements, the first being a condition (i.e. a binary variable being 0 or 1) and the second being the constraint.

© 2001-2020 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.