A Novel Constraint-Handling Method Based on Evolutionary Algorithm