- tmp = tmp - cnst->bound;
-
- if(tmp > epsilon_min_error){
- WARN3("The link (%p) doesn't match the KKT property, expected less than %e and got %e", cnst, epsilon_min_error, tmp);
+ if(tmp - cnst->bound > epsilon_min_error) {
+ WARN3("The link (%p) is over-used. Expected less than %e and got %e", cnst, cnst->bound, tmp);
+ }
+ if(!((fabs(tmp - cnst->bound)<epsilon_min_error && cnst->lambda>=epsilon_min_error) ||
+ (fabs(tmp - cnst->bound)>=epsilon_min_error && cnst->lambda<epsilon_min_error))) {
+ WARN1("The KKT condition is not verified for cnst %p...", cnst);
+ overall_error=1.0;