/home/coin/SVN-release/CoinAll-1.1.0/Cgl/src/CglGomory/CglGomory.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2002, International Business Machines
00002 // Corporation and others.  All Rights Reserved.
00003 #ifndef CglGomory_H
00004 #define CglGomory_H
00005 
00006 #include <string>
00007 
00008 #include "CglCutGenerator.hpp"
00009 
00010 class CoinWarmStartBasis;
00012 class CglGomory : public CglCutGenerator {
00013    friend void CglGomoryUnitTest(const OsiSolverInterface * siP,
00014                                   const std::string mpdDir );
00015  
00016 public:
00017     
00018   
00032   virtual void generateCuts( const OsiSolverInterface & si, OsiCuts & cs,
00033                              const CglTreeInfo info = CglTreeInfo()) const;
00036   int generateCuts( const OsiRowCutDebugger * debugger, 
00037                     OsiCuts & cs,
00038                     const CoinPackedMatrix & columnCopy,
00039                     const CoinPackedMatrix & rowCopy,
00040                     const double * objective, const double * colsol,
00041                     const double * colLower, const double * colUpper,
00042                     const double * rowLower, const double * rowUpper,
00043                     const char * intVar ,
00044                     const CoinWarmStartBasis* warm,
00045                     const CglTreeInfo info = CglTreeInfo()) const;
00048   int generateCuts( const OsiRowCutDebugger * debugger, 
00049                     OsiCuts & cs,
00050                     const CoinPackedMatrix & columnCopy,
00051                     const double * objective, const double * colsol,
00052                     const double * colLower, const double * colUpper,
00053                     const double * rowLower, const double * rowUpper,
00054                     const char * intVar ,
00055                     const CoinWarmStartBasis* warm,
00056                     const CglTreeInfo info = CglTreeInfo()) const;
00057 
00059   virtual bool needsOptimalBasis() const;
00061 
00064 
00065   void setLimit(int limit);
00067   int getLimit() const;
00069   void setLimitAtRoot(int limit);
00071   int getLimitAtRoot() const;
00073 
00078 
00079   void setAway(double value);
00081   double getAway() const;
00083 
00084 
00087 
00088   CglGomory ();
00089  
00091   CglGomory (
00092     const CglGomory &);
00093 
00095   virtual CglCutGenerator * clone() const;
00096 
00098   CglGomory &
00099     operator=(
00100     const CglGomory& rhs);
00101   
00103   virtual
00104     ~CglGomory ();
00106   virtual std::string generateCpp( FILE * fp);
00108       
00109 private:
00110   
00111  // Private member methods
00112 
00113   // Private member data
00114 
00117 
00118   double away_;
00120   int limit_;
00122   int limitAtRoot_;
00124 };
00125 
00126 //#############################################################################
00132 void CglGomoryUnitTest(const OsiSolverInterface * siP,
00133                         const std::string mpdDir );
00134   
00135 #endif

Generated on Sun Nov 14 14:06:31 2010 for Coin-All by  doxygen 1.4.7