Cbc 2.10.12
Loading...
Searching...
No Matches
CbcCutModifier.hpp
Go to the documentation of this file.
1// $Id$
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
15class CbcModel;
16class OsiRowCut;
17class OsiRowCutDebugger;
26
28public:
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
53protected:
54};
55
56#endif //CbcCutModifier_H
57
58/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
59*/
CbcCutModifier()
Default Constructor.
virtual int modify(const OsiSolverInterface *solver, OsiRowCut &cut)=0
Returns 0 unchanged 1 strengthened 2 weakened 3 deleted.
virtual CbcCutModifier * clone() const =0
Clone.
CbcCutModifier(const CbcCutModifier &)
virtual void generateCpp(FILE *)
Create C++ lines to get to current state.
virtual ~CbcCutModifier()
Destructor.
CbcCutModifier & operator=(const CbcCutModifier &rhs)
Assignment.
Simple Branch and bound class.
Definition CbcModel.hpp:100