Solving 2D problem of optimal control by temperature sources in a diffusion complex heat transfer model