dwave.optimization.model.ArraySymbol.state_size#

ArraySymbol.state_size()#

Return an estimated byte-size of the state.

Examples

This example returns the size of an integer symbol.

>>> from dwave.optimization import Model
>>> model = Model()
>>> i = model.integer(2, lower_bound=0, upper_bound=20)
>>> i.state_size()
16