Stochastic technology in a programming framework: A generalized mean-variance farm model uri icon