fix to attempts logic
This commit is contained in:
@ -18,10 +18,6 @@ from models.bundle import Bundle
|
||||
from models.objective_function import ObjectiveFunction
|
||||
from models.advanced_options import AdvancedOptions
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from models.solution import Solution
|
||||
from models.problem import Problem
|
||||
|
||||
ConstraintType = TypeVar('ConstraintType', bound=GenericConstraint)
|
||||
|
||||
class SolverRun(BaseModel):
|
||||
@ -37,6 +33,7 @@ class SolverRun(BaseModel):
|
||||
drift_style: Literal['constant', 'variable'] = 'constant'
|
||||
allow_enemies: bool = False
|
||||
max_attempts: int
|
||||
max_drift: int = 15
|
||||
advanced_options: Optional[AdvancedOptions]
|
||||
engine: str
|
||||
|
||||
|
Reference in New Issue
Block a user