Numerical Methods for Nonlinear Optimal Control Problems and Their Applications in Indoor Climate Control