You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# fail if the found outcome is actually worse than the maximum allowed. Should never happen
575
-
raiseValueError(
576
-
f"worst_in failed to find an appropriate outcome: {rng=} with initial find at {indx_} but we found an outcome with utility {self.utils[indx] ifindxisnotNoneelseself.utils}"
577
-
)
573
+
# if indx is None or (mx > mn + EPS and self.utils[indx] > mx + 2 * eps):
574
+
# # fail if the found outcome is actually worse than the maximum allowed. Should never happen
575
+
# raise ValueError(
576
+
# f"worst_in failed to find an appropriate outcome: {rng=} with initial find at {indx_} but we found an outcome with utility {self.utils[indx] if indx is not None else self.utils}"
f"best_in failed to find an appropriate outcome: {rng=} with initial find at {indx_} but we found an outcome with utility {self.utils[indx] ifindxisnotNoneelseself.utils}"
612
-
)
609
+
# if indx is None or (mn < mx - eps and self.utils[indx] < mn - 2 * eps):
610
+
# raise ValueError(
611
+
# f"best_in failed to find an appropriate outcome: {rng=} with initial find at {indx_} but we found an outcome with utility {self.utils[indx] if indx is not None else self.utils}"
0 commit comments