Hierarchical Optimization of Linear Constraint Processing