Setting up linear programming problems