Optimization of mathematical models for thematic maps