diff --git a/dwave/optimization/mathematical.py b/dwave/optimization/mathematical.py index 1386db28..0605f7cf 100644 --- a/dwave/optimization/mathematical.py +++ b/dwave/optimization/mathematical.py @@ -532,7 +532,7 @@ def sqrt(x: ArraySymbol) -> SquareRoot: >>> model.states.resize(1) >>> with model.lock(): ... print(sqrt_x.state()) - 4 + 4.0 See Also: :class:`~dwave.optimization.symbols.SquareRoot`: equivalent symbol. """ diff --git a/dwave/optimization/model.py b/dwave/optimization/model.py index 346197db..c301812d 100644 --- a/dwave/optimization/model.py +++ b/dwave/optimization/model.py @@ -244,7 +244,7 @@ def feasible(self, index: int = 0) -> bool: >>> model = Model() >>> b = model.binary() >>> model.add_constraint(b) # doctest: +ELLIPSIS - + >>> model.states.resize(2) >>> b.set_state(0, 1) # Feasible >>> b.set_state(1, 0) # Infeasible