MVar.shape

shape

The shape of this MVar.

Return value:

A tuple of int

Example usage:

  x1 = model.addMVar((3,))
  print(x1.shape)  #  "(3,)"
  x2 = model.addMVar((1, 3))
  print(x2.shape)  #  "(1, 3)"