leet the solver drift
This commit is contained in:
@ -9,8 +9,14 @@ class Target(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def max_drift(cls):
|
||||
return 10 # 10% elasticity
|
||||
return 120 # let it drift...
|
||||
|
||||
@classmethod
|
||||
def max_drift_increment(cls):
|
||||
return 1 # 1%
|
||||
return 10 # 10%
|
||||
|
||||
def minimum(self, drift_percent = 0.0) -> float:
|
||||
return round(self.value - (self.value * drift_percent), 2)
|
||||
|
||||
def maximum(self, drift_percent = 0.0) -> float:
|
||||
return round(self.value + (self.value * drift_percent), 2)
|
||||
|
Reference in New Issue
Block a user