Changeset 110


Ignore:
Timestamp:
Apr 20, 2005 11:00:49 AM (15 years ago)
Author:
forrest
Message:

changing default to cuts in search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Test/CbcMain.cpp

    r101 r110  
    3838
    3939#include "CbcModel.hpp"
     40#include "CbcCutGenerator.hpp"
    4041#include "CbcHeuristic.hpp"
    4142#include "CbcCompareActual.hpp"
     
    613614    gomoryGen.setLimit(3000);
    614615    // set default action (0=off,1=on,2=root)
    615     int gomoryAction=2;
     616    int gomoryAction=1;
    616617
    617618    CglProbing probingGen;
     
    622623    probingGen.setRowCuts(3);
    623624    // set default action (0=off,1=on,2=root)
    624     int probingAction=2;
     625    int probingAction=1;
    625626
    626627    CglKnapsackCover knapsackGen;
    627628    // set default action (0=off,1=on,2=root)
    628     int knapsackAction=2;
     629    int knapsackAction=1;
    629630
    630631    CglOddHole oddholeGen;
     
    633634    oddholeGen.setMaximumEntries(100);
    634635    // set default action (0=off,1=on,2=root)
    635     int oddholeAction=2;
     636    int oddholeAction=1;
    636637
    637638    CglClique cliqueGen;
     
    639640    cliqueGen.setRowCliqueReport(false);
    640641    // set default action (0=off,1=on,2=root)
    641     int cliqueAction=2;
     642    int cliqueAction=1;
    642643
    643644    CglMixedIntegerRounding mixedGen;
    644645    // set default action (0=off,1=on,2=root)
    645     int mixedAction=2;
     646    int mixedAction=1;
    646647
    647648    CglFlowCover flowGen;
    648649    // set default action (0=off,1=on,2=root)
    649     int flowAction=2;
     650    int flowAction=1;
    650651
    651652    CglTwomir twomirGen;
     
    717718          else if (twomirAction==2)
    718719            model->addCutGenerator(&twomirGen,-99,"TwoMirCuts");
     720          // Say we want timings
     721          int numberGenerators = model->numberCutGenerators();
     722          int iGenerator;
     723          for (iGenerator=0;iGenerator<numberGenerators;iGenerator++) {
     724            CbcCutGenerator * generator = model->cutGenerator(iGenerator);
     725            generator->setTiming(true);
     726          }
    719727          model->branchAndBound();
    720728          time2 = CoinCpuTime();
Note: See TracChangeset for help on using the changeset viewer.