Fix bisection methods to return the parameter that fulfills the conditions more close to the target constrains.