New exact penalty function for solving constrained finite min-max problems