Cbc  2.10.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcCutModifier.hpp
Go to the documentation of this file.
1 // $Id: CbcCutModifier.hpp 2465 2019-01-03 19:26:52Z unxusr $
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 CbcCutModifier_H
9 #define CbcCutModifier_H
10 
11 #include "OsiSolverInterface.hpp"
12 #include "OsiCuts.hpp"
13 #include "CglCutGenerator.hpp"
14 
15 class CbcModel;
16 class OsiRowCut;
17 class OsiRowCutDebugger;
28 public:
31 
32  // Copy constructor
34 
36  virtual ~CbcCutModifier();
37 
41  virtual CbcCutModifier *clone() const = 0;
42 
49  virtual int modify(const OsiSolverInterface *solver, OsiRowCut &cut) = 0;
51  virtual void generateCpp(FILE *) {}
52 
53 protected:
54 };
55 
56 #endif //CbcCutModifier_H
57 
58 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
59 */
virtual int modify(const OsiSolverInterface *solver, OsiRowCut &cut)=0
Returns 0 unchanged 1 strengthened 2 weakened 3 deleted.
Abstract Base Class for describing an interface to a solver.
CbcCutModifier & operator=(const CbcCutModifier &rhs)
Assignment.
virtual CbcCutModifier * clone() const =0
Clone.
Row Cut Class.
Definition: OsiRowCut.hpp:29
CbcCutModifier()
Default Constructor.
Abstract cut modifier base class.
virtual void generateCpp(FILE *)
Create C++ lines to get to current state.
Validate cuts against a known solution.
virtual ~CbcCutModifier()
Destructor.
Simple Branch and bound class.
Definition: CbcModel.hpp:100