MATLAB implemetation of genetic algorithm for solving optimization problems.