I have a regression problem where I need all coefficents to be positive and the intercept to be zero. I can do this in sklearn but i don't understand how the algoritm can force this conditions through the loss function. Any references will be appreciated.
\begin{align}\hat{\beta}^\text{lasso}&=\underset{\beta}{ \arg\min}\sum_{i=1}^N \left(y_i-\beta_0-\sum_{j=1}^Px_{ij}\beta_j\right)^2\\&\textrm{subject to}\sum_{j=1}^P|\beta_j|\leq t. \end{align}
positive
argument that allows you to do so. $\endgroup$