Solving General Nonlinear Programming Problems with a Genetic Algorithm