A penalty function algorithm with objective parameters for nonlinear mathematical programming