Changeset 333 for trunk/Cbc/examples


Ignore:
Timestamp:
May 25, 2006 1:05:49 PM (14 years ago)
Author:
andreasw
Message:

finished examples subdir

Location:
trunk/Cbc/examples
Files:
1 added
4 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/crew.cpp

    r86 r333  
    3535  // Read in model using argv[1]
    3636  // and assert that it is a clean model
    37   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     37  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    3838  if (argc>=2) mpsFileName = argv[1];
    3939  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/driver.cpp

    r100 r333  
    3636  // Read in model using argv[1]
    3737  // and assert that it is a clean model
    38   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     38  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    3939  if (argc>=2) mpsFileName = argv[1];
    4040  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/driver2.cpp

    r100 r333  
    3636  // Read in model using argv[1]
    3737  // and assert that it is a clean model
    38   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     38  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    3939  if (argc>=2) mpsFileName = argv[1];
    4040  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/fast0507.cpp

    r176 r333  
    7070  // Read in model using argv[1]
    7171  // and assert that it is a clean model
    72   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     72  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    7373  if (argc>=2) mpsFileName = argv[1];
    7474  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/fast0507b.cpp

    r176 r333  
    55#  pragma warning(disable:4786)
    66#endif
     7
     8#include "CbcConfig.h"
    79
    810#include <cassert>
     
    7577  // Read in model using argv[1]
    7678  // and assert that it is a clean model
    77   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     79  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    7880  if (argc>=2) mpsFileName = argv[1];
    7981  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/hotstart.cpp

    r230 r333  
    6060  // Read in model using argv[1]
    6161  // and assert that it is a clean model
    62   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     62  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    6363  if (argc>=2) mpsFileName = argv[1];
    6464  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/longthin.cpp

    r176 r333  
    4444  // Read in model using argv[1]
    4545  // and assert that it is a clean model
    46   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     46  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    4747  if (argc>=2) mpsFileName = argv[1];
    4848  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/lotsize.cpp

    r65 r333  
    3636  // Read in model using argv[1]
    3737  // and assert that it is a clean model
    38   std::string mpsFileName = "miplib3/10teams";
     38  std::string mpsFileName = "../../Data/miplib3/10teams";
    3939  if (argc>=2) mpsFileName = argv[1];
    4040  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/minimum.cpp

    r79 r333  
    1212  // Read in example model
    1313  // and assert that it is a clean model
    14   int numMpsReadErrors = solver1.readMps("../../Mps/Sample/p0033.mps","");
     14  int numMpsReadErrors = solver1.readMps("../../Data/Sample/p0033.mps","");
    1515  assert(numMpsReadErrors==0);
    1616
  • trunk/Cbc/examples/nway.cpp

    r215 r333  
    3535  // Read in model using argv[1]
    3636  // and assert that it is a clean model
    37   std::string mpsFileName = "miplib3/10teams";
     37  std::string mpsFileName = "../../Data/miplib3/10teams";
    3838  if (argc>=2) mpsFileName = argv[1];
    3939  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/repeat.cpp

    r234 r333  
    6565  // Read in model using argv[1]
    6666  // and assert that it is a clean model
    67   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     67  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    6868  if (argc>=2) mpsFileName = argv[1];
    6969  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/sample1.cpp

    r2 r333  
    88#include <cassert>
    99
     10#include "CbcConfig.h"
     11
    1012// For Branch and bound
    1113#include "OsiSolverInterface.hpp"
    1214#include "CbcModel.hpp"
    1315
    14 #ifdef COIN_USE_CLP
     16#ifdef COIN_HAS_CLP
    1517#include "OsiClpSolverInterface.hpp"
    1618#endif
     
    8082  // Define your favorite OsiSolver
    8183 
    82 #ifdef COIN_USE_CLP
     84#ifdef COIN_HAS_CLP
    8385  ClpSimplex simplex;
    8486#endif
  • trunk/Cbc/examples/sample2.cpp

    r225 r333  
    7373  // Read in model using argv[1]
    7474  // and assert that it is a clean model
    75   std::string mpsFileName = "../../Mps/Sample/p0033.mps";
     75  std::string mpsFileName = "../../Data/Sample/p0033.mps";
    7676  if (argc>=2) mpsFileName = argv[1];
    7777  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
  • trunk/Cbc/examples/sample3.cpp

    r176 r333  
    55#  pragma warning(disable:4786)
    66#endif
     7
     8#include "CbcConfig.h"
    79
    810#include <assert.h>
     
    1820#include "CbcCutGenerator.hpp"
    1921#include "CbcHeuristicLocal.hpp"
    20 #ifdef COIN_USE_CLP
     22#ifdef COIN_HAS_CLP
    2123#include "OsiClpSolverInterface.hpp"
    2224#endif
    23 #ifdef COIN_USE_OSL
     25#ifdef COIN_HAS_OSL
    2426#include "OsiOslSolverInterface.hpp"
    2527#endif
     
    9092  // Define your favorite OsiSolver
    9193 
    92 #ifdef COIN_USE_CLP
     94#ifdef COIN_HAS_CLP
    9395  OsiClpSolverInterface solver1;
    9496  //solver1.messageHandler()->setLogLevel(0);
    9597  solver1.getModelPtr()->setDualBound(1.0e10);
    9698#endif
    97 #ifdef COIN_USE_OSL
     99#ifdef COIN_HAS_OSL
    98100  OsiOslSolverInterface solver1;
    99101  //solver1.messageHandler()->setLogLevel(0);
  • trunk/Cbc/examples/sample4.cpp

    r2 r333  
    55#  pragma warning(disable:4786)
    66#endif
     7
     8#include "CbcConfig.h"
    79
    810#include <cassert>
     
    1719#include "CbcCompareUser.hpp"
    1820#include "CoinTime.hpp"
    19 #ifdef COIN_USE_CLP
     21#ifdef COIN_HAS_CLP
    2022#include "OsiClpSolverInterface.hpp"
    2123#endif
     
    4143  // Define your favorite OsiSolver
    4244 
    43 #ifdef COIN_USE_CLP
     45#ifdef COIN_HAS_CLP
    4446  OsiClpSolverInterface solver1;
    4547  //solver1.messageHandler()->setLogLevel(0);
  • trunk/Cbc/examples/sample5.cpp

    r176 r333  
    55#  pragma warning(disable:4786)
    66#endif
     7
     8#include "CbcConfig.h"
    79
    810#include <cassert>
     
    1719#include "CbcCutGenerator.hpp"
    1820#include "CbcHeuristicLocal.hpp"
    19 #ifdef COIN_USE_CLP
     21#ifdef COIN_HAS_CLP
    2022#include "OsiClpSolverInterface.hpp"
    2123#endif
    22 #ifdef COIN_USE_OSL
     24#ifdef COIN_HAS_OSL
    2325#include "OsiOslSolverInterface.hpp"
    2426#endif
     
    7779  */
    7880 
    79 #ifdef COIN_USE_CLP
     81#ifdef COIN_HAS_CLP
    8082  OsiClpSolverInterface solver1;
    81 #elif COIN_USE_OSL
     83#elif COIN_HAS_OSL
    8284  OsiOslSolverInterface solver1;
    8385#endif
     
    210212  model.addCutGenerator(&mixedGen,-1,"MixedIntegerRounding");
    211213
    212 #ifdef COIN_USE_CLP
     214#ifdef COIN_HAS_CLP
    213215  OsiClpSolverInterface * osiclp = dynamic_cast< OsiClpSolverInterface*> (model.solver());
    214216  // go faster stripes
  • trunk/Cbc/examples/sos.cpp

    r60 r333  
    3535  // Read in model using argv[1]
    3636  // and assert that it is a clean model
    37   std::string mpsFileName = "miplib3/10teams";
     37  std::string mpsFileName = "../../Data/miplib3/10teams";
    3838  if (argc>=2) mpsFileName = argv[1];
    3939  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
Note: See TracChangeset for help on using the changeset viewer.