Text this: A version of the penalty method with approximation of the epigraphs of auxiliary functions