Cbc  2.9.9
 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 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 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:
30  CbcCutModifier ();
31 
32  // Copy constructor
33  CbcCutModifier ( const CbcCutModifier &);
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 protected:
53 
54 };
55 
56 #endif //CbcCutModifier_H
57 
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:101