Stack arrays in sequence horizontally (column wise). This is equivalent to concatenation along the second axis, except for 1-D arrays where it concatenates along the first axis.
This method has the same behavior as numpy.hstack, except that it always returns a gurobipy matrix-friendly API object of the appropriate type.
Arguments:
tup: A sequence of matrix-friendly API objects
Return value:
Returns a matrix-friendly API object. Note that the return type depends on the types of the input objects.
Example usage:
X = model.addMVar((k, n)) Y = model.addMVar((k, m)) XY = gp.hstack((X, Y)) # (k, n+m) MVar