Marginal cost criteria for group replacement