Application of optimization methods to the problem of mathematical simulation of atmospheric processes and environment