MCPcopy Create free account
hub / github.com/DEAP/deap / valid

Method valid

tests/test_convergence.py:389–393  ·  view source on GitHub ↗

Determines if the individual is valid or not.

(individual)

Source from the content-addressed store, hash-verified

387 return feasible_ind
388
389 def valid(individual):
390 """Determines if the individual is valid or not."""
391 if any(individual < BOUND_LOW) or any(individual > BOUND_UP):
392 return False
393 return True
394
395 NDIM = 5
396 BOUND_LOW, BOUND_UP = 0.0, 1.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected