Changeset 1329 for framspy/FramsticksEvolution.py
- Timestamp:
- 12/26/24 01:43:47 (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksEvolution.py
r1312 r1329 67 67 68 68 def is_feasible_fitness_value(fitness_value: float) -> bool: 69 assert isinstance(fitness_value, float), f"feasible_fitness({fitness_value}): argument is not of type float, it is of type {type(fitness_value)}" # since we are using DEAP, we unfortunately must represent the fitness of an "infeasible solution" as a float...69 assert isinstance(fitness_value, float), f"feasible_fitness({fitness_value}): argument is not of type 'float', it is of type '{type(fitness_value)}'" # since we are using DEAP, we unfortunately must represent the fitness of an "infeasible solution" as a float... 70 70 return fitness_value != FITNESS_VALUE_INFEASIBLE_SOLUTION # ...so if a valid solution happens to have fitness equal to this special value, such a solution will be considered infeasible :/ 71 71
Note: See TracChangeset
for help on using the changeset viewer.