source: trunk/Cbc/src/CbcGeneral.cpp

Last change on this file was 2465, checked in by unxusr, 9 months ago

script to format sources

  • 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 2465 2019-01-03 19:26:52Z 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// Destructor
41CbcGeneral::~CbcGeneral()
42{
43}
44
45// Copy constructor
46CbcGeneral::CbcGeneral(const CbcGeneral &rhs)
47  : CbcObject(rhs)
48{
49}
50#ifdef COIN_HAS_CLP
51#include "OsiClpSolverInterface.hpp"
52#include "CoinWarmStartBasis.hpp"
53#include "ClpNode.hpp"
54#include "CbcBranchDynamic.hpp"
55// Assignment operator
56CbcGeneral &
57CbcGeneral::operator=(const CbcGeneral &rhs)
58{
59  if (this != &rhs) {
60    CbcObject::operator=(rhs);
61  }
62  return *this;
63}
64// Infeasibility - large is 0.5
65double
66CbcGeneral::infeasibility(const OsiBranchingInformation * /*info*/,
67  int & /*preferredWay*/) const
68{
69  abort();
70  return 0.0;
71}
72CbcBranchingObject *
73CbcGeneral::createCbcBranch(OsiSolverInterface * /*solver*/, const OsiBranchingInformation * /*info*/, int /*way*/)
74{
75  abort();
76  return NULL;
77}
78#endif
79
80/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
81*/
Note: See TracBrowser for help on using the repository browser.