Application of linear programming to the evaluation of agricultural flood control