What is the optimal place for heart failure treatment and care: home or hospital?

What is the optimal place for heart failure treatment and care: home or hospital?