Stochastic technology in a programming framework: a generalised mean variance farm model.