An Evolutionary Algorithm Approach For Solving Optimal Control Problems