Mathematical Methods for the Analysis of Hierarchical Systems. 1. Problem Formulation, and Stochastic Algorithms for Solving Minimax and Multiobjective Problems