Hantar teks ini: A direct method for optimal control problem