Ignore:
Timestamp:
Jun 26, 2007 5:17:15 AM (13 years ago)
Author:
forrest
Message:

trunk from branches/devel

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        1 MSVisualStudio   https://projects.coin-or.org/svn/MSVisualStudio/trunk/ExternalsDirs/Cbc
        2 BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.5
         1MSVisualStudio   https://projects.coin-or.org/svn/MSVisualStudio/branches/devel/ExternalsDirs/Cbc
         2BuildTools    https://projects.coin-or.org/svn/BuildTools/trunk
        33ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.0
         4ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
         5ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
        46Data/Netlib   https://projects.coin-or.org/svn/Data/stable/1.0/Netlib
        57Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
  • trunk/Cbc/examples/qmip2.cpp

    r394 r640  
    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.