Add a function that checks the correctness (gap and ground) of a penalty model.
Add a function that checks the correctness (gap and ground) of a penalty model.