Check the number of constraints violations of the individual
solver (Solver) – Global optimization problem solver
indiv (individual) – Individual of the population
is_feasible – Individual feasibility
bool