Applying bi-functional decision rules to the optimization of random-structure discrete dynamic systems