in this paper, a new numerical method is presented for solvingthe optimal control problems of bang-bang type with free or xed terminaltime. the method is based on bezier polynomials which are presented inany interval as [t0; tf ]. the problems are reduced to a constrained problemswhich can be solved by using lagrangian method. the constraints ofthese problems are terminal state and conditions....