Initializing help system before first use

problem.addSOS

problem.addSOS


Purpose
Adds one or more Special Ordered Set (SOS) to the problem.
Synopsis
problem.addSOS (s1, s2, ...)
Argument
s1,s2... 
Special Ordered Sets defined prior to the call or (see example below) defined directly in the call.
Example
N = 20
x = [xpress.var () for i in range (N)]
p = xpress.problem ()
p.addVariable (x)
s = xpress.sos ([x], [i+2 for i in range (N)])
p.addSOS (s)
p.addSOS ([x[0], x[2]], [4,6])
Further information
All arguments can be single SOSs or lists, tuples, or NumPy arrays of SOSs created as xpress.sos objects. As for constraints, a SOS does not need to be declared prior to being added as an argument.