On computing the maximum-entropy probability consistent with a capacity