Cost Functions and Duality for Stochastic Technologies · Study