Prediction and outlier detection: a distribution-free prediction set with a balanced objective