Changeset 168


Ignore:
Timestamp:
Oct 1, 2005 3:08:58 PM (14 years ago)
Author:
forrest
Message:

RedSplit?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Samples/sample2.cpp

    r153 r168  
    2424#include "CglProbing.hpp"
    2525#include "CglKnapsackCover.hpp"
    26 #include "CglOddHole.hpp"
     26#include "CglRedSplit.hpp"
    2727#include "CglClique.hpp"
    2828#include "CglFlowCover.hpp"
     
    151151  CglKnapsackCover generator3;
    152152
    153   // Decided too slow
    154   //CglOddHole generator4;
    155   //generator4.setMinimumViolation(0.005);
    156   //generator4.setMinimumViolationPer(0.00002);
     153  CglRedSplit generator4;
    157154  // try larger limit
    158   //generator4.setMaximumEntries(200);
     155  generator4.setLimit(200);
    159156
    160157  CglClique generator5;
     
    170167  model.addCutGenerator(&generator2,-1,"Gomory");
    171168  model.addCutGenerator(&generator3,-1,"Knapsack");
    172   //model.addCutGenerator(&generator4,-1,"OddHole");
     169  //model.addCutGenerator(&generator4,-1,"RedSplit");
    173170  model.addCutGenerator(&generator5,-1,"Clique");
    174171  model.addCutGenerator(&flowGen,-1,"FlowCover");
     
    183180  OsiClpSolverInterface * osiclp = dynamic_cast< OsiClpSolverInterface*> (model.solver());
    184181  // go faster stripes
    185   if (osiclp->getNumRows()<300&&osiclp->getNumCols()<500) {
    186     //osiclp->setupForRepeatedUse(2,0);
    187     osiclp->setupForRepeatedUse(0,0);
     182  if (osiclp) {
     183    // Turn this off if you get problems
     184    // Used to be automatically set
     185    osiclp->setSpecialOptions(128);
     186    if(osiclp->getNumRows()<300&&osiclp->getNumCols()<500) {
     187      //osiclp->setupForRepeatedUse(2,0);
     188      osiclp->setupForRepeatedUse(0,0);
     189    }
    188190  }
    189191  model.messagesPointer()->setDetailMessage(0,61);
     
    231233    model.setNumberStrong(10);
    232234  model.setNumberStrong(20);
     235  //model.setNumberStrong(5);
     236  model.setNumberBeforeTrust(5);
    233237
    234238  model.solver()->setIntParam(OsiMaxNumIterationHotStart,100);
Note: See TracChangeset for help on using the changeset viewer.