Computation of Optimum Control Functions by Lagrange Multipliers