A General Equilibrium Model of Production Under Uncertainty