source: trunk/Cbc/src/CbcGeneral.cpp @ 1899

Last change on this file since 1899 was 1899, checked in by stefan, 5 years ago

fixup svn properties

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1// $Id: CbcGeneral.cpp 1899 2013-04-09 18:12:08Z stefan $
2// Copyright (C) 2002, International Business Machines
3// Corporation and others.  All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6// Edwin 11/10/2009-- carved out of CbcBranchActual
7
8#if defined(_MSC_VER)
9// Turn off compiler warning about long names
10#  pragma warning(disable:4786)
11#endif
12#include <cassert>
13#include <cstdlib>
14#include <cmath>
15#include <cfloat>
16//#define CBC_DEBUG
17
18#include "CoinTypes.hpp"
19#include "OsiSolverInterface.hpp"
20#include "OsiSolverBranch.hpp"
21#include "CbcModel.hpp"
22#include "CbcMessage.hpp"
23#include "CbcGeneral.hpp"
24#include "CbcBranchActual.hpp"
25#include "CoinSort.hpp"
26#include "CoinError.hpp"
27
28// Default Constructor
29CbcGeneral::CbcGeneral()
30        : CbcObject()
31{
32}
33
34// Constructor from model
35CbcGeneral::CbcGeneral(CbcModel * model)
36        : CbcObject(model)
37{
38}
39
40
41// Destructor
42CbcGeneral::~CbcGeneral ()
43{
44}
45
46// Copy constructor
47CbcGeneral::CbcGeneral ( const CbcGeneral & rhs)
48        : CbcObject(rhs)
49{
50}
51#ifdef COIN_HAS_CLP
52#include "OsiClpSolverInterface.hpp"
53#include "CoinWarmStartBasis.hpp"
54#include "ClpNode.hpp"
55#include "CbcBranchDynamic.hpp"
56// Assignment operator
57CbcGeneral &
58CbcGeneral::operator=( const CbcGeneral & rhs)
59{
60    if (this != &rhs) {
61        CbcObject::operator=(rhs);
62    }
63    return *this;
64}
65// Infeasibility - large is 0.5
66double
67CbcGeneral::infeasibility(const OsiBranchingInformation * /*info*/,
68                          int &/*preferredWay*/) const
69{
70    abort();
71    return 0.0;
72}
73CbcBranchingObject *
74CbcGeneral::createCbcBranch(OsiSolverInterface * /*solver*/, const OsiBranchingInformation * /*info*/, int /*way*/)
75{
76    abort();
77    return NULL;
78}
79#endif
80
Note: See TracBrowser for help on using the repository browser.