Optimal design and control of dynamic systems under uncertainty: A probabilistic approach