Changeset 1059


Ignore:
Timestamp:
Sep 5, 2008 5:17:43 PM (10 years ago)
Author:
forrest
Message:

out some printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristic.cpp

    r1053 r1059  
    2323#include "CbcStrategy.hpp"
    2424#include "CglPreProcess.hpp"
     25#include "CglProbing.hpp"
    2526#include "OsiAuxInfo.hpp"
    2627#include "OsiPresolve.hpp"
     
    892893            for (int iGenerator=0;iGenerator<model.numberCutGenerators();iGenerator++) {
    893894              CbcCutGenerator * generator = model.cutGenerator(iGenerator);
    894               printf("%s was tried %d times and created %d cuts of which %d were active after adding rounds of cuts",
     895              sprintf(generalPrint,
     896                      "%s was tried %d times and created %d cuts of which %d were active after adding rounds of cuts (%.3f seconds)",
    895897                      generator->cutGeneratorName(),
    896898                      generator->numberTimesEntered(),
    897899                      generator->numberCutsInTotal()+
    898900                      generator->numberColumnCuts(),
    899                       generator->numberCutsActive());
    900               printf(" (%.3f seconds)\n)",generator->timeInCutGenerator());
     901                      generator->numberCutsActive(),
     902                      generator->timeInCutGenerator());
     903              CglStored * stored = dynamic_cast<CglStored*>(generator->generator());
     904              if (stored&&!generator->numberCutsInTotal())
     905                continue;
     906#ifndef CLP_INVESTIGATE
     907              CglImplication * implication = dynamic_cast<CglImplication*>(generator->generator());
     908              if (implication)
     909                continue;
     910#endif
     911              model_->messageHandler()->message(CBC_FPUMP1,model_->messages())
     912                << generalPrint
     913                <<CoinMessageEol;
    901914            }
    902915          }
Note: See TracChangeset for help on using the changeset viewer.