Modeling with linear equations and inequalities