QuadraticModel.nbytes(capacity: bool = False) int[source]#

Get the total bytes consumed by the biases, vartype info, bounds, and indices.

Does not include the memory consumed by non-element attributes of the quadratic model object. Also does not include the memory consumed by the variable labels.

  • capacity – If capacity is true, also include the std::vector::capacity

  • calculation. (of the underlying vectors in the) –


The number of bytes.