In mathematical optimization, penalty methods are a certain class of algorithms for solving constrained optimization problems. | en.m.wikipedia.org