Problems of organization and construction of mathematical models for climatic and ecological monitoring, forecasting, environmental quality control, and design of observations are discussed. Interconnections of the models with experimental data, variations of the model parameters, and goal functions are realized based on the variational principle.