ugly linear programming interface