using constrained samples for linear_model