\begin{cases}
 & \text  \\ \sum_{i=1}^{N}{m}_{i}{x}_{i} \rightarrow max& 
& \text  \\&
& \text \\ \sqrt{\sum_{i=1}^{N}{x}_{i}^{2}{\delta }_{i}^{2}+2\sum_{i=1}^{N-1}\sum_{j=i+1}^{N}{x}_{i}{x}_{j}{r}_{ij}{\delta }_{j}{\delta }_{i}}\leq {\delta }_{p}& 
&\text \\&  
& \text\\  \sum_{i=1}^{N}{x}_{i}=1&
&\text \\&
& \text \\  {x}_{i}\geq 0&
\end{cases}