/home/coin/CoinUtils-1.0.4/CoinUtils/src/CoinPresolveUseless.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2002, International Business Machines
00002 // Corporation and others.  All Rights Reserved.
00003 
00004 #ifndef CoinPresolveUseless_H
00005 #define CoinPresolveUseless_H
00006 #define USELESS         20
00007 
00008 class useless_constraint_action : public CoinPresolveAction {
00009   struct action {
00010     double rlo;
00011     double rup;
00012     const int *rowcols;
00013     const double *rowels;
00014     int row;
00015     int ninrow;
00016   };
00017 
00018   const int nactions_;
00019   const action *const actions_;
00020 
00021   useless_constraint_action(int nactions,
00022                             const action *actions,
00023                             const CoinPresolveAction *next);
00024   ~useless_constraint_action();
00025 
00026  public:
00027   const char *name() const;
00028 
00029   // These rows are asserted to be useless,
00030   // that is, given a solution the row activity
00031   // must be in range.
00032   static const CoinPresolveAction *presolve(CoinPresolveMatrix * prob,
00033                                          const int *useless_rows,
00034                                          int nuseless_rows,
00035                                          const CoinPresolveAction *next);
00036 
00037   void postsolve(CoinPostsolveMatrix *prob) const;
00038 };
00039 
00040 
00041 #endif

Generated on Wed Aug 22 05:57:04 2007 by  doxygen 1.4.7