source: trunk/Cbc/src/CbcGeneral.hpp

Last change on this file was 2465, checked in by unxusr, 11 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.4 KB
Line 
1// $Id: CbcGeneral.hpp 2465 2019-01-03 19:26:52Z tkr $
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#ifndef CbcGeneral_H
9#define CbcGeneral_H
10
11#include "CbcBranchBase.hpp"
12/** Define a catch all class.
13    This will create a list of subproblems
14*/
15
16class CbcGeneral : public CbcObject {
17
18public:
19  // Default Constructor
20  CbcGeneral();
21
22  /** Useful constructor
23        Just needs to point to model.
24    */
25  CbcGeneral(CbcModel *model);
26
27  // Copy constructor
28  CbcGeneral(const CbcGeneral &);
29
30  /// Clone
31  virtual CbcObject *clone() const = 0;
32
33  // Assignment operator
34  CbcGeneral &operator=(const CbcGeneral &rhs);
35
36  // Destructor
37  ~CbcGeneral();
38
39  /// Infeasibility - large is 0.5
40  virtual double infeasibility(const OsiBranchingInformation *info,
41    int &preferredWay) const;
42
43  using CbcObject::feasibleRegion;
44  /// This looks at solution and sets bounds to contain solution
45  virtual void feasibleRegion() = 0;
46
47  /// Creates a branching object
48  virtual CbcBranchingObject *createCbcBranch(OsiSolverInterface *solver, const OsiBranchingInformation *info, int way);
49
50  /// Redoes data when sequence numbers change
51  virtual void redoSequenceEtc(CbcModel *model, int numberColumns, const int *originalColumns) = 0;
52
53protected:
54  /// data
55};
56
57#endif
58
59/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
60*/
Note: See TracBrowser for help on using the repository browser.