Skip to content

Commit df75187

Browse files
committed
added lower limit to fWeight
1 parent 9905295 commit df75187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RATapi/controls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Controls(BaseModel, validate_assignment=True, extra="forbid"):
5656
updatePlotFreq: int = 20
5757
# DE
5858
populationSize: int = Field(20, ge=1)
59-
fWeight: float = 0.5
59+
fWeight: float = Field(0.5, gt=0.0)
6060
crossoverProbability: float = Field(0.8, gt=0.0, lt=1.0)
6161
strategy: Strategies = Strategies.RandomWithPerVectorDither
6262
targetValue: float = Field(1.0, ge=1.0)

0 commit comments

Comments
 (0)