Skip to content

Commit

Permalink
Fix code for constraint handling example. Feasible individuals in the
Browse files Browse the repository at this point in the history
example lie between 3 and 7, not 3 and 5.
  • Loading branch information
bje- committed May 3, 2015
1 parent 08205e1 commit b65ebcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorials/advanced/constraints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module. ::
def feasible(individual):
"""Feasability function for the individual. Returns True if feasible False
otherwise."""
if 3 < individual[0] < 5:
if 3 < individual[0] < 7:
return True
return False

Expand Down

0 comments on commit b65ebcb

Please sign in to comment.