Optimization problem of complex system under uncertainty