A combination of penalty function and multiplier methods for solving optimal control problems