Ignore:
Timestamp:
Jul 15, 2006 1:12:07 PM (13 years ago)
Author:
forrest
Message:

mostly try and simplify CbcOr?...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/examples/qmip2.cpp

    r394 r414  
    188188  // This clones solver
    189189  CbcModel model(solver1);
    190   // Add stored cuts
    191   model.addCutGenerator(&stored,-1,"Stored");
     190  // Add stored cuts (making sure at all depths)
     191  model.addCutGenerator(&stored,1,"Stored",true,false,false,-100,1,-1);
    192192  /*  You need the next few lines -
    193193      a) so that cut generator will always be called again if it generated cuts
    194194      b) it is known that matrix is not enough to define problem so do cuts even
    195195         if it looks integer feasible at continuous optimum.
    196       c) a solution found ny strong branching will be ignored.
     196      c) a solution found by strong branching will be ignored.
     197      d) don't recompute a solution once found
    197198  */
    198199  // Make sure cut generator called correctly (a)
     
    205206  CbcFeasibilityNoStrong noStrong;
    206207  model.setProblemFeasibility(noStrong);
     208  // Say don't recompute solution d)
     209  model.setSpecialOptions(4);
    207210 
    208211  double time1 = CoinCpuTime();
Note: See TracChangeset for help on using the changeset viewer.