Solve the farmer's problem with progressive hedging