An Adaptive Penalty Function Method for Constrained Optimization with Evolutionary Programming