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

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

fixup svn properties

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1// $Id: CbcConsequence.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/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.