Simultaneous design and control under uncertainty using model predictive control