Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcCutSubsetModifier.hpp
Go to the documentation of this file.
1 // $Id: CbcCutSubsetModifier.hpp 1899 2013-04-09 18:12:08Z stefan $
2 // Copyright (C) 2003, 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/25/09 carved out of CbcCutGenerator
7 
8 #ifndef CbcCutSubsetModifier_H
9 #define CbcCutSubsetModifier_H
10 
11 #include "OsiSolverInterface.hpp"
12 #include "OsiCuts.hpp"
13 #include "CglCutGenerator.hpp"
14 #include "CbcCutModifier.hpp"
15 
16 class CbcModel;
17 class OsiRowCut;
18 class OsiRowCutDebugger;
32 public:
35 
37  CbcCutSubsetModifier (int firstOdd);
38 
39  // Copy constructor
41 
43  virtual ~CbcCutSubsetModifier();
44 
48  virtual CbcCutModifier * clone() const ;
49 
56  virtual int modify(const OsiSolverInterface * solver, OsiRowCut & cut) ;
58  virtual void generateCpp( FILE * ) {}
59 protected:
62  int firstOdd_;
63 };
64 
65 #endif //CbcCutSubsetModifier_H
66 
virtual CbcCutModifier * clone() const
Clone.
virtual int modify(const OsiSolverInterface *solver, OsiRowCut &cut)
Returns 0 unchanged 1 strengthened 2 weakened 3 deleted.
virtual void generateCpp(FILE *)
Create C++ lines to get to current state.
Abstract Base Class for describing an interface to a solver.
virtual ~CbcCutSubsetModifier()
Destructor.
CbcCutSubsetModifier & operator=(const CbcCutSubsetModifier &rhs)
Assignment.
Row Cut Class.
Definition: OsiRowCut.hpp:29
Abstract cut modifier base class.
CbcCutSubsetModifier()
Default Constructor.
Validate cuts against a known solution.
int firstOdd_
data First odd variable
Simple Branch and bound class.
Definition: CbcModel.hpp:101
Simple cut modifier base class.