Spiking neurons; Optimal control; Homotopy perturbation method