Genetic Algorithm Description
This routine finds the optimum point of a constrained optimization problem using genetic algorithms. Code your function in subroutine funct In this example, it is applied to the Himmelblau's two variable constrained objective function Maximise: F(x1,x2) =(x(1)*x(1)+x(2)-11.0)**2+(x(1)+x(2)*x(2)-7.0)**2 Subject to: g(1) = 4.84-x(1)*x(1)-((x(2)-2.5))**2 <= 0 g(2) = (x(1)-0.005)**2 + (x(2)-2.5)**2 - 4.84 <= 0 The optimum solution is x(1) = 2.246826 and x(2) = 2.381865 Optimal Function Value: 13.97492015230Previous Next