Doubly majorized algorithm for sparsity-inducing optimization problems with regularizer-compatible constraints