Handled exception of infeasible solutions

Handled exception of infeasible solutions