Presented in 8th ICFAS Conference in Antalya, Turkey on “Optimal control applied to class of problems using direct gradient descent method.”