source: branches/sandbox/Cbc/src/CbcGeneral.hpp @ 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.3 KB
Line 
1// Edwin 11/10/2009-- carved out of CbcBranchActual
2#ifndef CbcGeneral_H
3#define CbcGeneral_H
4
5#include "CbcBranchBase.hpp"
6/** Define a catch all class.
7    This will create a list of subproblems
8*/
9
10
11class CbcGeneral : public CbcObject {
12
13public:
14
15    // Default Constructor
16    CbcGeneral ();
17
18    /** Useful constructor
19        Just needs to point to model.
20    */
21    CbcGeneral (CbcModel * model);
22
23    // Copy constructor
24    CbcGeneral ( const CbcGeneral &);
25
26    /// Clone
27    virtual CbcObject * clone() const = 0;
28
29    // Assignment operator
30    CbcGeneral & operator=( const CbcGeneral& rhs);
31
32    // Destructor
33    ~CbcGeneral ();
34
35    /// Infeasibility - large is 0.5
36    virtual double infeasibility(const OsiBranchingInformation * info,
37                                 int &preferredWay) const;
38
39    using CbcObject::feasibleRegion ;
40    /// This looks at solution and sets bounds to contain solution
41    virtual void feasibleRegion() = 0;
42
43    /// Creates a branching object
44    virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface * solver, const OsiBranchingInformation * info, int way) ;
45
46    /// Redoes data when sequence numbers change
47    virtual void redoSequenceEtc(CbcModel * model, int numberColumns, const int * originalColumns) = 0;
48
49protected:
50    /// data
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.