Changeset 1675 for stable/2.7/Cbc/examples
- Timestamp:
- Jun 19, 2011 1:23:14 PM (10 years ago)
- Location:
- stable/2.7
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/2.7
- Property svn:externals
-
old new 1 BuildTools https://projects.coin-or.org/svn/BuildTools/stable/0.7 2 ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.2 3 ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2 4 ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3 5 ThirdParty/Glpk https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/stable/1.8 6 Data/Sample https://projects.coin-or.org/svn/Data/Sample/stable/1.2 7 CoinUtils https://projects.coin-or.org/svn/CoinUtils/stable/2.8/CoinUtils 8 Cgl https://projects.coin-or.org/svn/Cgl/stable/0.57/Cgl 9 Clp https://projects.coin-or.org/svn/Clp/stable/1.14/Clp 10 Osi https://projects.coin-or.org/svn/Osi/stable/0.105/Osi 1 BuildTools https://projects.coin-or.org/svn/BuildTools/stable/0.7 2 ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.2 3 ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2 4 ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3 5 ThirdParty/Glpk https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/stable/1.8 6 ThirdParty/Metis https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/stable/1.2 7 ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/stable/1.4 8 Data/Sample https://projects.coin-or.org/svn/Data/Sample/stable/1.2 9 Data/miplib3 https://projects.coin-or.org/svn/Data/miplib3/stable/1.2 10 CoinUtils https://projects.coin-or.org/svn/CoinUtils/stable/2.8/CoinUtils 11 Cgl https://projects.coin-or.org/svn/Cgl/stable/0.57/Cgl 12 Clp https://projects.coin-or.org/svn/Clp/stable/1.14/Clp 13 Osi https://projects.coin-or.org/svn/Osi/stable/0.105/Osi
-
- Property svn:mergeinfo changed
/trunk (added) merged: 1578,1582-1587,1589-1600,1603-1614,1620-1626,1631-1633,1635-1636,1638-1646,1650-1652,1654-1658,1660-1663,1665-1671,1673-1674
- Property svn:externals
-
stable/2.7/Cbc
- Property svn:mergeinfo changed
/trunk/Cbc (added) merged: 1578,1582-1587,1589-1600,1603-1608,1610-1614,1620-1626,1631-1633,1635-1636,1638-1646,1650-1652,1654-1658,1660-1663,1665-1671,1673-1674
- Property svn:mergeinfo changed
-
stable/2.7/Cbc/examples/Makefile.in
r1565 r1675 19 19 # CHANGEME: Here is the name of all object files corresponding to the source 20 20 # code that you wrote in order to define the problem statement 21 OBJS = $(DRIVER).@OBJEXT@ \ 22 CbcCompareUser.@OBJEXT@ \ 23 CbcSolver2.@OBJEXT@ \ 24 CbcSolver3.@OBJEXT@ \ 25 ClpQuadInterface.@OBJEXT@ \ 26 CbcBranchFollow2.@OBJEXT@ \ 27 CbcBranchUser.@OBJEXT@ \ 28 CbcBranchLink.@OBJEXT@ 21 OBJS = $(DRIVER).@OBJEXT@ 22 23 # CbcCompareUser.@OBJEXT@ \ 24 # CbcSolver2.@OBJEXT@ \ 25 # CbcSolver3.@OBJEXT@ \ 26 # ClpQuadInterface.@OBJEXT@ \ 27 # CbcBranchFollow2.@OBJEXT@ \ 28 # CbcBranchUser.@OBJEXT@ \ 29 # CbcBranchLink.@OBJEXT@ 29 30 30 31 # CHANGEME: Additional libraries … … 95 96 else 96 97 ifeq ($(COIN_CXX_IS_CL), TRUE) 97 LIBS = /link /libpath:`$(CYGPATH_W) @abs_lib_dir@` libCbcSolver.lib libCbc.lib libOsiCbc.lib @CBCLIB_LIBS_INSTALLED@98 LIBS = -link -libpath:`$(CYGPATH_W) @abs_lib_dir@` libCbcSolver.lib libCbc.lib libOsiCbc.lib @CBCLIB_LIBS_INSTALLED@ 98 99 else 99 100 LIBS = -L@abs_lib_dir@ -lCbcSolver -lCbc -lOsiCbc @CBCLIB_LIBS_INSTALLED@ -
stable/2.7/Cbc/examples/driver4.cpp
r1574 r1675 15 15 #include "CbcModel.hpp" 16 16 #include "OsiClpSolverInterface.hpp" 17 #include "CbcCompareUser.hpp"18 17 #include "CbcSolver.hpp" 19 18 … … 75 74 case 3: 76 75 { 77 CbcCompareUser compare;78 model->setNodeComparison(compare);76 //CbcCompareUser compare; 77 //model->setNodeComparison(compare); 79 78 } 80 79 break; -
stable/2.7/Cbc/examples/sample1.cpp
r1574 r1675 4 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 5 6 #if defined(_MSC_VER)7 // Turn off compiler warning about long names8 # pragma warning(disable:4786)9 #endif10 11 6 #include <cassert> 12 7 13 8 #include "CbcConfig.h" 9 #include "CoinPragma.hpp" 14 10 15 11 // For Branch and bound … … 17 13 #include "CbcModel.hpp" 18 14 19 #ifdef COIN_HAS_CLP20 15 #include "OsiClpSolverInterface.hpp" 21 #endif22 16 #include "ClpPresolve.hpp" 23 17 #include "CbcCompareUser.hpp" … … 85 79 // Define your favorite OsiSolver 86 80 87 #ifdef COIN_HAS_CLP88 81 ClpSimplex simplex; 89 #endif90 82 double time0 = cpuTime(); 91 83 double time1 = time0; -
stable/2.7/Cbc/examples/sample2.cpp
r1574 r1675 4 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 5 6 #if defined(_MSC_VER)7 // Turn off compiler warning about long names8 # pragma warning(disable:4786)9 #endif10 11 6 #include <cassert> 12 7 #include <iomanip> 13 8 9 #include "CoinPragma.hpp" 14 10 15 11 // For Branch and bound -
stable/2.7/Cbc/examples/sample3.cpp
r1574 r1675 4 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 5 6 #if defined(_MSC_VER)7 // Turn off compiler warning about long names8 # pragma warning(disable:4786)9 #endif10 11 6 #include "CbcConfig.h" 7 8 #include "CoinPragma.hpp" 12 9 13 10 #include <assert.h> … … 23 20 #include "CbcCutGenerator.hpp" 24 21 #include "CbcHeuristicLocal.hpp" 25 #ifdef COIN_HAS_CLP26 22 #include "OsiClpSolverInterface.hpp" 27 #endif28 #ifdef COIN_HAS_OSL29 #include "OsiOslSolverInterface.hpp"30 #endif31 23 32 24 // Cuts … … 95 87 // Define your favorite OsiSolver 96 88 97 #ifdef COIN_HAS_CLP98 89 OsiClpSolverInterface solver1; 99 90 //solver1.messageHandler()->setLogLevel(0); 100 91 solver1.getModelPtr()->setDualBound(1.0e10); 101 #endif102 #ifdef COIN_HAS_OSL103 OsiOslSolverInterface solver1;104 //solver1.messageHandler()->setLogLevel(0);105 #endif106 92 107 93 // Read in model using argv[1] -
stable/2.7/Cbc/examples/sample4.cpp
r1574 r1675 4 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 5 6 #if defined(_MSC_VER)7 // Turn off compiler warning about long names8 # pragma warning(disable:4786)9 #endif10 11 6 #include "CbcConfig.h" 7 8 #include "CoinPragma.hpp" 12 9 13 10 #include <cassert> … … 22 19 #include "CbcCompareUser.hpp" 23 20 #include "CoinTime.hpp" 24 #ifdef COIN_HAS_CLP25 21 #include "OsiClpSolverInterface.hpp" 26 #endif27 22 28 23 //############################################################################# … … 46 41 // Define your favorite OsiSolver 47 42 48 #ifdef COIN_HAS_CLP49 43 OsiClpSolverInterface solver1; 50 44 //solver1.messageHandler()->setLogLevel(0); 51 45 CbcModel model(solver1); 52 #endif53 46 model.solver()->setHintParam(OsiDoReducePrint,true,OsiHintTry); 54 47 -
stable/2.7/Cbc/examples/sample5.cpp
r1574 r1675 4 4 // This code is licensed under the terms of the Eclipse Public License (EPL). 5 5 6 #if defined(_MSC_VER)7 // Turn off compiler warning about long names8 # pragma warning(disable:4786)9 #endif10 11 6 #include "CbcConfig.h" 7 8 #include "CoinPragma.hpp" 12 9 13 10 #include <cassert> … … 22 19 #include "CbcCutGenerator.hpp" 23 20 #include "CbcHeuristicLocal.hpp" 24 #ifdef COIN_HAS_CLP25 21 #include "OsiClpSolverInterface.hpp" 26 #endif27 #ifdef COIN_HAS_OSL28 #include "OsiOslSolverInterface.hpp"29 #endif30 22 31 23 // Cuts … … 82 74 */ 83 75 84 #ifdef COIN_HAS_CLP85 76 OsiClpSolverInterface solver1; 86 #elif COIN_HAS_OSL87 OsiOslSolverInterface solver1;88 #endif89 77 /* From now on we can build model in a solver independent way. 90 78 You can add rows one at a time but for large problems this is slow so … … 215 203 model.addCutGenerator(&mixedGen,-1,"MixedIntegerRounding"); 216 204 217 #ifdef COIN_HAS_CLP218 205 OsiClpSolverInterface * osiclp = dynamic_cast< OsiClpSolverInterface*> (model.solver()); 219 206 // go faster stripes … … 223 210 printf("may not be safe if doing cuts in tree which need accuracy (level 2 anyway)\n"); 224 211 } 225 #endif226 212 227 213 // Allow rounding heuristic
Note: See TracChangeset
for help on using the changeset viewer.