- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# /home/coin/SVN-release/Cgl-0.53.1/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   void setAwayAtRoot(double value);
    00085   double getAwayAtRoot() const;
    00087
    00088
    00091
    00092   CglGomory ();
    00093
    00095   CglGomory (
    00096     const CglGomory &);
    00097
    00099   virtual CglCutGenerator * clone() const;
    00100
    00102   CglGomory &
    00103     operator=(
    00104     const CglGomory& rhs);
    00105
    00107   virtual
    00108     ~CglGomory ();
    00110   virtual std::string generateCpp( FILE * fp);
    00112
    00113 private:
    00114
    00115  // Private member methods
    00116
    00117   // Private member data
    00118
    00121
    00122   double away_;
    00124   double awayAtRoot_;
    00126   int limit_;
    00128   int limitAtRoot_;
    00130 };
    00131
    00132 //#############################################################################
    00138 void CglGomoryUnitTest(const OsiSolverInterface * siP,
    00139                         const std::string mpdDir );
    00140
    00141 #endif