Changeset 1443 for trunk/Clp


Ignore:
Timestamp:
Oct 2, 2009 2:38:57 PM (10 years ago)
Author:
forrest
Message:

ifdef some printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSimplexDual.cpp

    r1442 r1443  
    70347034            equal(lower_[iSequence],value))) {
    70357035            nErrors++;
     7036#ifdef CLP_INVESTIGATE
    70367037            printf("** upperFake %c%d %g <= %g <= %g true %g, %g\n",
    70377038                   RC,jSequence,lower_[iSequence],solution_[iSequence],
    70387039                   upper_[iSequence],lowerValue,upperValue);
     7040#endif
    70397041          }
    70407042          isFake=true;;
     
    70447046               equal(lower_[iSequence],value))) {
    70457047            nErrors++;
     7048#ifdef CLP_INVESTIGATE
    70467049            printf("** lowerFake %c%d %g <= %g <= %g true %g, %g\n",
    70477050                   RC,jSequence,lower_[iSequence],solution_[iSequence],
    70487051                   upper_[iSequence],lowerValue,upperValue);
     7052#endif
    70497053          }
    70507054          isFake=true;;
    70517055        } else if (fakeStatus==ClpSimplexDual::bothFake) {
    70527056          nWarnings++;
     7057#ifdef CLP_INVESTIGATE
    70537058          printf("** %d at bothFake?\n",iSequence);
     7059#endif
    70547060        } else if (upper_[iSequence]-lower_[iSequence]>2.0*dualBound_) {
    70557061          nErrors++;
     7062#ifdef CLP_INVESTIGATE
    70567063          printf("** noFake! %c%d %g <= %g <= %g true %g, %g\n",
    70577064                 RC,jSequence,lower_[iSequence],solution_[iSequence],
    70587065                 upper_[iSequence],lowerValue,upperValue);
     7066#endif
    70597067        }
    70607068      } else if (status==superBasic||status==isFree) {
     
    70707078          odd=true;
    70717079        if (odd) {
     7080#ifdef CLP_INVESTIGATE
    70727081          printf("** basic %c%d %g <= %g <= %g true %g, %g\n",
    70737082               RC,jSequence,lower_[iSequence],solution_[iSequence],
    70747083               upper_[iSequence],lowerValue,upperValue);
     7084#endif
    70757085          nWarnings++;
    70767086        }
     
    70787088        if (!equal(upper_[iSequence],lower_[iSequence])) {
    70797089          nErrors++;
     7090#ifdef CLP_INVESTIGATE
    70807091          printf("** fixed! %c%d %g <= %g <= %g true %g, %g\n",
    70817092                 RC,jSequence,lower_[iSequence],solution_[iSequence],
    70827093                 upper_[iSequence],lowerValue,upperValue);
     7094#endif
    70837095        }
    70847096      }
     
    70887100        if (fakeStatus!=ClpSimplexDual::noFake) {
    70897101          nErrors++;
     7102#ifdef CLP_INVESTIGATE
    70907103          printf("** bad fake status %c%d %d\n",
    70917104                 RC,jSequence,fakeStatus);
     7105#endif
    70927106        }
    70937107      }
    70947108    }
    70957109    if (nFake!=numberFake_) {
     7110#ifdef CLP_INVESTIGATE
    70967111      printf("nfake %d numberFake %d\n",nFake,numberFake_);
     7112#endif
    70977113      nErrors++;
    70987114    }
    70997115    if (nErrors||type<=-1000) {
     7116#ifdef CLP_INVESTIGATE
    71007117      printf("%d errors, %d warnings, %d free/superbasic, %d fake\n",
    71017118             nErrors,nWarnings,nSuperBasic,numberFake_);
    71027119      printf("dualBound %g\n",
    71037120             dualBound_);
     7121#endif
    71047122      if (type<=-1000) {
    71057123        iSequence = -type;
     
    71137131        double lowerValue=tempLower[iSequence];
    71147132        double upperValue=tempUpper[iSequence];
     7133#ifdef CLP_INVESTIGATE
    71157134        printf("*** movement>1.0e30 for  %c%d %g <= %g <= %g true %g, %g - status %d\n",
    71167135                 RC,jSequence,lower_[iSequence],solution_[iSequence],
    71177136               upper_[iSequence],lowerValue,upperValue,status_[iSequence]);
     7137#endif
    71187138        assert (nErrors); // should have been picked up
    71197139      }
Note: See TracChangeset for help on using the changeset viewer.