Revert "Created a method for checking hard constraints"

This reverts commit 5a5fe43f848328346e8d5f828e4f6d576e9754ed.
Revert "Revert "Created a method for checking hard constraints""

This reverts commit cb293bbca77125aaf6c0b7ebf852e22c97df9d25.