source: trunk/Cbc/src/CbcConsequence.hpp @ 1573

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

Change to EPL license notice.

File size: 1.2 KB
Line 
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
6// Edwin 11/12/2009 carved from CbcBranchBase
7
8#ifndef CbcConsequence_H
9#define CbcConsequence_H
10
11class OsiSolverInterface;
12
13/** Abstract base class for consequent bounds.
14    When a variable is branched on it normally interacts with other variables by
15    means of equations.  There are cases where we want to step outside LP and do something
16    more directly e.g. fix bounds.  This class is for that.
17
18    At present it need not be virtual as only instance is CbcFixVariable, but ...
19
20 */
21
22class CbcConsequence {
23
24public:
25
26    // Default Constructor
27    CbcConsequence ();
28
29    // Copy constructor
30    CbcConsequence ( const CbcConsequence & rhs);
31
32    // Assignment operator
33    CbcConsequence & operator=( const CbcConsequence & rhs);
34
35    /// Clone
36    virtual CbcConsequence * clone() const = 0;
37
38    /// Destructor
39    virtual ~CbcConsequence ();
40
41    /** Apply to an LP solver.  Action depends on state
42     */
43    virtual void applyToSolver(OsiSolverInterface * solver, int state) const = 0;
44
45protected:
46};
47
48#endif
49
Note: See TracBrowser for help on using the repository browser.