The Equivalence between Ordinal Optimization in Deterministic Complex Problems and in Stochastic Simulation Problems