From df7518769f46b5c58cd72e619a5ed5dcb8ffdde7 Mon Sep 17 00:00:00 2001 From: alexhroom Date: Tue, 21 Jan 2025 14:00:21 +0000 Subject: [PATCH] added lower limit to fWeight --- RATapi/controls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RATapi/controls.py b/RATapi/controls.py index 4d38bb80..a6e239eb 100644 --- a/RATapi/controls.py +++ b/RATapi/controls.py @@ -56,7 +56,7 @@ class Controls(BaseModel, validate_assignment=True, extra="forbid"): updatePlotFreq: int = 20 # DE populationSize: int = Field(20, ge=1) - fWeight: float = 0.5 + fWeight: float = Field(0.5, gt=0.0) crossoverProbability: float = Field(0.8, gt=0.0, lt=1.0) strategy: Strategies = Strategies.RandomWithPerVectorDither targetValue: float = Field(1.0, ge=1.0)