source: branches/sandbox/Cbc/src/CbcGeneral.cpp @ 1389

Last change on this file since 1389 was 1357, checked in by coin, 10 years ago

run 'astyle -A4 -p' and dos2unix

File size: 1.5 KB
Line 
1// Edwin 11/10/2009-- carved out of CbcBranchActual
2#if defined(_MSC_VER)
3// Turn off compiler warning about long names
4#  pragma warning(disable:4786)
5#endif
6#include <cassert>
7#include <cstdlib>
8#include <cmath>
9#include <cfloat>
10//#define CBC_DEBUG
11
12#include "CoinTypes.hpp"
13#include "OsiSolverInterface.hpp"
14#include "OsiSolverBranch.hpp"
15#include "CbcModel.hpp"
16#include "CbcMessage.hpp"
17#include "CbcGeneral.hpp"
18#include "CbcBranchActual.hpp"
19#include "CoinSort.hpp"
20#include "CoinError.hpp"
21
22// Default Constructor
23CbcGeneral::CbcGeneral()
24        : CbcObject()
25{
26}
27
28// Constructor from model
29CbcGeneral::CbcGeneral(CbcModel * model)
30        : CbcObject(model)
31{
32}
33
34
35// Destructor
36CbcGeneral::~CbcGeneral ()
37{
38}
39
40// Copy constructor
41CbcGeneral::CbcGeneral ( const CbcGeneral & rhs)
42        : CbcObject(rhs)
43{
44}
45#ifdef COIN_HAS_CLP
46#include "OsiClpSolverInterface.hpp"
47#include "CoinWarmStartBasis.hpp"
48#include "ClpNode.hpp"
49#include "CbcBranchDynamic.hpp"
50// Assignment operator
51CbcGeneral &
52CbcGeneral::operator=( const CbcGeneral & rhs)
53{
54    if (this != &rhs) {
55        CbcObject::operator=(rhs);
56    }
57    return *this;
58}
59// Infeasibility - large is 0.5
60double
61CbcGeneral::infeasibility(const OsiBranchingInformation * /*info*/,
62                          int &/*preferredWay*/) const
63{
64    abort();
65    return 0.0;
66}
67CbcBranchingObject *
68CbcGeneral::createCbcBranch(OsiSolverInterface * /*solver*/, const OsiBranchingInformation * /*info*/, int /*way*/)
69{
70    abort();
71    return NULL;
72}
73#endif
Note: See TracBrowser for help on using the repository browser.