coin-Cgl
CglDuplicateRow.hpp
Go to the documentation of this file.
1 // Copyright (C) 2004, International Business Machines
2 // Corporation and others. All Rights Reserved.
3 #ifndef CglDuplicateRow_H
4 #define CglDuplicateRow_H
5 
6 #include <string>
7 
8 #include "CglCutGenerator.hpp"
9 class CglStored;
10 
13 
14 public:
15 
16 
37  virtual void generateCuts( const OsiSolverInterface & si, OsiCuts & cs,
38  const CglTreeInfo info = CglTreeInfo()) const;
58  CglStored * outDuplicates( OsiSolverInterface * solver);
59 
61 
64  inline const int * duplicate() const
66  { return duplicate_;}
68  inline int sizeDynamic() const
69  { return sizeDynamic_;}
71  inline int numberOriginalRows() const
72  { return matrix_.getNumRows();}
74 
77  inline int logLevel() const
79  { return logLevel_;}
80  inline void setLogLevel(int value)
81  { logLevel_ = value;}
83 
84 
87  inline int maximumRhs() const
89  { return maximumRhs_;}
91  inline void setMaximumRhs(int value)
92  { maximumRhs_=value;}
94 
97  inline int maximumDominated() const
99  { return maximumDominated_;}
101  inline void setMaximumDominated(int value)
102  { maximumDominated_=value;}
104 
106  inline int mode() const
108  { return mode_;}
110  inline void setMode(int value)
111  { mode_=value;}
113 
116  CglDuplicateRow ();
118 
120  CglDuplicateRow (OsiSolverInterface * solver);
121 
124  const CglDuplicateRow & rhs);
125 
127  virtual CglCutGenerator * clone() const;
128 
131  operator=(
132  const CglDuplicateRow& rhs);
133 
135  virtual
136  ~CglDuplicateRow ();
138  virtual std::string generateCpp( FILE * fp);
139 
141  virtual void refreshSolver(OsiSolverInterface * solver);
143 
144 protected:
145 
146 
147  // Protected member data
148 
151  CoinPackedMatrix matrix_;
154  CoinPackedMatrix matrixByRow_;
156  int * rhs_;
158  mutable int * duplicate_;
160  int * lower_;
168  mutable int sizeDynamic_;
170  int mode_;
174 };
175 #endif