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

Last change on this file since 1852 was 1573, checked in by lou, 9 years ago

Change to EPL license notice.

File size: 1.5 KB
RevLine 
[1573]1// $Id$
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
[1357]6// Edwin 11/10/2009-- carved out of CbcBranchActual
[1573]7
[1357]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
[1427]59#endif
[1432]60
Note: See TracBrowser for help on using the repository browser.