GAMSlinks  0.4
GamsCutGenerator.hpp
Go to the documentation of this file.
1 // Copyright (C) GAMS Development 2006
2 // All Rights Reserved.
3 // This code is published under the Common Public License.
4 //
5 // $Id: GamsCutGenerator.hpp 297 2008-01-03 18:15:55Z stefan $
6 //
7 // Author: Stefan Vigerske
8 
9 #ifndef GAMSCUTGENERATOR_HPP_
10 #define GAMSCUTGENERATOR_HPP_
11 
12 #include "GAMSlinksConfig.h"
13 // from CoinUtils
14 #include "CoinPragma.hpp"
15 
16 #include "GamsBCH.hpp"
17 #include "CglCutGenerator.hpp"
18 #include "CbcModel.hpp"
19 
20 class GamsCutGenerator : public CglCutGenerator {
21 private:
23 
24  CbcModel*& modelptr;
25 
26 public:
27  GamsCutGenerator(GamsBCH& bch_, CbcModel*& modelptr_);
28 
29  void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info) const;
30 
31  CglCutGenerator* clone() const;
32 };
33 
34 #endif /*GAMSCUTGENERATOR_HPP_*/
void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info) const
CglCutGenerator * clone() const
GamsCutGenerator(GamsBCH &bch_, CbcModel *&modelptr_)
Interface to GAMS BCH facility.
Definition: GamsBCH.hpp:24