Source code for ell_algo.ell_config

from enum import Enum


[docs] class CutStatus(Enum): Success = 0 NoSoln = 1 NoEffect = 2 Unknown = 3
[docs] class Options: max_iters: int = 2000 # maximum number of iterations tol: float = 1e-8 # error tolerance
# The `CInfo` class represents information about a computation, including whether it is feasible and # the number of iterations it took.
[docs] class CInfo: def __init__(self, feasible: bool, num_iters: int) -> None: """Construct a new CInfo object Arguments: feasible (bool): [description] num_iters (int): [description] status (int): [description] """ self.feasible: bool = feasible self.num_iters: int = num_iters