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

- File List
- File Members

# /home/coin/SVN-release/DyLP-1.5.0/CoinUtils/src/CoinPresolveSubst.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 CoinPresolveSubst_H
    00005 #define CoinPresolveSubst_H
    00006 #define SUBST_ROW       21
    00007
    00008 #include "CoinPresolveMatrix.hpp"
    00009
    00010 class subst_constraint_action : public CoinPresolveAction {
    00011 private:
    00012   subst_constraint_action();
    00013   subst_constraint_action(const subst_constraint_action& rhs);
    00014   subst_constraint_action& operator=(const subst_constraint_action& rhs);
    00015
    00016   struct action {
    00017     double *rlos;
    00018     double *rups;
    00019
    00020     double *coeffxs;
    00021     int *rows;
    00022
    00023     int *ninrowxs;
    00024     /*const*/ int *rowcolsxs;
    00025     /*const*/ double *rowelsxs;
    00026
    00027     const double *costsx;
    00028     int col;
    00029     int rowy;
    00030
    00031     int nincol;
    00032   };
    00033
    00034   const int nactions_;
    00035   // actions_ is owned by the class and must be deleted at destruction
    00036   const action *const actions_;
    00037
    00038   subst_constraint_action(int nactions,
    00039                           action *actions,
    00040                           const CoinPresolveAction *next) :
    00041     CoinPresolveAction(next),
    00042     nactions_(nactions), actions_(actions) {}
    00043
    00044  public:
    00045   const char *name() const;
    00046
    00047   static const CoinPresolveAction *presolve(CoinPresolveMatrix * prob,
    00048                                             const int *implied_free,
    00049                                             const int * which,
    00050                                             int numberFree,
    00051                                             const CoinPresolveAction *next,
    00052                                             int & fill_level);
    00053   static const CoinPresolveAction *presolveX(CoinPresolveMatrix * prob,
    00054                                   const CoinPresolveAction *next,
    00055                                   int fillLevel);
    00056
    00057   void postsolve(CoinPostsolveMatrix *prob) const;
    00058
    00059   ~subst_constraint_action();
    00060 };
    00061
    00062
    00063
    00064
    00065
    00066 /*static*/ void implied_bounds(const double *els,
    00067                            const double *clo, const double *cup,
    00068                            const int *hcol,
    00069                            CoinBigIndex krs, CoinBigIndex kre,
    00070                            double *maxupp, double *maxdownp,
    00071                            int jcol,
    00072                            double rlo, double rup,
    00073                            double *iclb, double *icub);
    00074 #endif