source: branches/devel/Cbc/src/CoinSolve.cpp @ 606

Last change on this file since 606 was 596, checked in by forrest, 13 years ago

for Matteo and a bit for Jon

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1// Copyright (C) 2007, International Business Machines
2// Corporation and others.  All Rights Reserved.
3   
4#include "CbcConfig.h"
5#include "CoinPragma.hpp"
6#include "CbcModel.hpp"
7#include "OsiClpSolverInterface.hpp"
8
9#include <cassert>
10#include <cstdio>
11#include <cmath>
12#include <cfloat>
13#include <cstring>
14#include <iostream>
15//#############################################################################
16// To use USERCBC or USERCLP uncomment the following define and add in your fake main program here
17//#define USER_HAS_FAKE_MAIN
18//  Start any fake main program
19#ifdef USER_HAS_FAKE_MAIN
20#endif
21//  End any fake main program
22//#############################################################################
23void CbcClpUnitTest (const CbcModel & saveModel);
24int main (int argc, const char *argv[])
25{
26  OsiClpSolverInterface solver1;
27  CbcModel * babSolver = NULL;
28  int returnCode = CbcMain (argc, argv,solver1,&babSolver);
29  if (returnCode!=777) {
30    return returnCode;
31  } else {
32    // do miplib
33    CbcClpUnitTest(*babSolver);
34    return 0;
35  }
36}
37/*
38  Version 1.00.00 November 16 2005.
39  This is to stop me (JJF) messing about too much.
40  Tuning changes should be noted here.
41  The testing next version may be activated by CBC_NEXT_VERSION
42  This applies to OsiClp, Clp etc
43  Version 1.00.01 November 24 2005
44  Added several classes for advanced users.  This can't affect code (if you don't use it)
45  Made some tiny changes (for N way branching) which should not change anything.
46  CbcNWay object class - for N way branching this also allows use of CbcConsequence class.
47  CbcBranchAllDifferent object class - for branching on general integer variables
48  to stop them having same value so branches are x >= y+1 and x <= y-1.
49  Added two new Cgl classes - CglAllDifferent which does column fixing (too slowly)
50  and CglStored which just has a list of cuts which can be activated.
51  Modified preprocess option to SOS
52  Version 1.00.02 December 9 2005
53  Added use of CbcStrategy to do clean preprocessing
54  Added use of referenceSolver for cleaner repetition of Cbc
55  Version 1.01.00 February 2 2006
56  Added first try at Ampl interface
57  Made dummy program so real main can be called from other programs
58*/
Note: See TracBrowser for help on using the repository browser.