Skicka posten per e-post: Efficient methods for estimating constrained parameters with applications to lasso logistic regression