Initializing help system before first use

problem.addVariable

problem.addVariable


Purpose
Adds one or more variables to the problem.
Synopsis
problem.addVariable(v1, v2, ...)
Argument
v1,v2... 
Variables or list/tuples/array of variables created with the xpress.var() call.
Example
x = xpress.var(vartype=xpress.binary)
Y = [xpress.var() for i in range(20)]
p = xpress.problem()
p.addVariable(x, Y)
Further information
All arguments can be single variables or lists, tuples, or NumPy arrays of variables created as xpress.var objects.