An efficient active-set method with applications to sparse approximations and risk minimization | Synapse