dwavesystems / dwave-optimization

Enables the formulation of nonlinear models for industrial optimization problems.
https://docs.ocean.dwavesys.com/en/stable/docs_optimization/index.html#index-optimization
Apache License 2.0
7 stars 18 forks source link

Decision state size for disjoint lists is always zero. #127

Closed alexzucca90 closed 1 month ago

alexzucca90 commented 1 month ago

This should be different than 0.

from dwave.optimization.model import Model
model = Model()
destinations, routes = model.disjoint_lists(10, 4)
model.decision_state_size()
>>> 0
arcondello commented 1 month ago

No, because it's instead reported by the DisjointList (via inheritance from ArraySymbol. And, due to the way that it's stored under the hood that count is accurate.

It's an implementation detail that the state is managed by DisjointLists rather than the successors.