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

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

fixup svn properties

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1// $Id: CbcGeneral.hpp 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#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
16
17class CbcGeneral : public CbcObject {
18
19public:
20
21    // Default Constructor
22    CbcGeneral ();
23
24    /** Useful constructor
25        Just needs to point to model.
26    */
27    CbcGeneral (CbcModel * model);
28
29    // Copy constructor
30    CbcGeneral ( const CbcGeneral &);
31
32    /// Clone
33    virtual CbcObject * clone() const = 0;
34
35    // Assignment operator
36    CbcGeneral & operator=( const CbcGeneral& rhs);
37
38    // Destructor
39    ~CbcGeneral ();
40
41    /// Infeasibility - large is 0.5
42    virtual double infeasibility(const OsiBranchingInformation * info,
43                                 int &preferredWay) const;
44
45    using CbcObject::feasibleRegion ;
46    /// This looks at solution and sets bounds to contain solution
47    virtual void feasibleRegion() = 0;
48
49    /// Creates a branching object
50    virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface * solver, const OsiBranchingInformation * info, int way) ;
51
52    /// Redoes data when sequence numbers change
53    virtual void redoSequenceEtc(CbcModel * model, int numberColumns, const int * originalColumns) = 0;
54
55protected:
56    /// data
57};
58
59#endif
60
Note: See TracBrowser for help on using the repository browser.