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.