Computation of constrained optimal controls using parameterization techniques