Optimizing entropy relative to a channel or a subalgebra