Changeset 188 for trunk/CbcModel.cpp


Ignore:
Timestamp:
Oct 9, 2005 12:36:19 PM (16 years ago)
Author:
forrest
Message:

local tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcModel.cpp

    r187 r188  
    37603760    numberIterations_ += solver_->getIterationCount() ;
    37613761    feasible = (solver_->isProvenOptimal() &&
    3762                 !solver_->isDualObjectiveLimitReached()) ; }
     3762                !solver_->isDualObjectiveLimitReached()) ;
     3763  }
     3764  if (0&&feasible) {
     3765    const double * lb = solver_->getColLower();
     3766    const double * ub = solver_->getColUpper();
     3767    const double * x = solver_->getColSolution();
     3768    const double * dj = solver_->getReducedCost();
     3769    int numberColumns = solver_->getNumCols();
     3770    for (int i=0;i<numberColumns;i++) {
     3771      if (dj[i]>1.0e-4&&ub[i]-lb[i]>1.0e-4&&x[i]>lb[i]+1.0e-4)
     3772        printf("error %d %g %g %g %g\n",i,dj[i],lb[i],x[i],ub[i]);
     3773      if (dj[i]<-1.0e-4&&ub[i]-lb[i]>1.0e-4&&x[i]<ub[i]-1.0e-4)
     3774        printf("error %d %g %g %g %g\n",i,dj[i],lb[i],x[i],ub[i]);
     3775    }
     3776  }
    37633777  if (!feasible&& continuousObjective_ <-1.0e30) {
    37643778    // at root node - double double check
Note: See TracChangeset for help on using the changeset viewer.