Clp  1.17.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CoinPresolveSubst.hpp
Go to the documentation of this file.
1 /* $Id: CoinPresolveSubst.hpp 2083 2019-01-06 19:38:09Z unxusr $ */
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef CoinPresolveSubst_H
7 #define CoinPresolveSubst_H
8 
13 #define SUBST_ROW 21
14 
15 #include "CoinPresolveMatrix.hpp"
16 
38 private:
42 
43  struct action {
44  double *rlos;
45  double *rups;
46 
47  double *coeffxs;
48  int *rows;
49 
50  int *ninrowxs;
51  int *rowcolsxs;
52  double *rowelsxs;
53 
54  const double *costsx;
55  int col;
56  int rowy;
57 
58  int nincol;
59  };
60 
61  const int nactions_;
62  // actions_ is owned by the class and must be deleted at destruction
63  const action *const actions_;
64 
66  action *actions,
67  const CoinPresolveAction *next)
68  : CoinPresolveAction(next)
69  , nactions_(nactions)
70  , actions_(actions)
71  {
72  }
73 
74 public:
75  const char *name() const;
76 
78  const int *implied_free,
79  const int *which,
80  int numberFree,
81  const CoinPresolveAction *next,
82  int fill_level);
84  const CoinPresolveAction *next,
85  int fillLevel);
86 
87  void postsolve(CoinPostsolveMatrix *prob) const;
88 
89  virtual ~subst_constraint_action();
90 };
91 
92 /*static*/ void implied_bounds(const double *els,
93  const double *clo, const double *cup,
94  const int *hcol,
95  CoinBigIndex krs, CoinBigIndex kre,
96  double *maxupp, double *maxdownp,
97  int jcol,
98  double rlo, double rup,
99  double *iclb, double *icub);
100 #endif
101 
102 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
103 */
const action *const actions_
static const CoinPresolveAction * presolveX(CoinPresolveMatrix *prob, const CoinPresolveAction *next, int fillLevel)
subst_constraint_action & operator=(const subst_constraint_action &rhs)
Abstract base class of all presolve routines.
Detect and process implied free variables.
Declarations for CoinPresolveMatrix and CoinPostsolveMatrix and their common base class CoinPrePostso...
static const CoinPresolveAction * presolve(CoinPresolveMatrix *prob, const int *implied_free, const int *which, int numberFree, const CoinPresolveAction *next, int fill_level)
const char * name() const
A name for debug printing.
const CoinPresolveAction * next
The next presolve transformation.
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during postsol...
subst_constraint_action(int nactions, action *actions, const CoinPresolveAction *next)
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during presolv...
int CoinBigIndex
void implied_bounds(const double *els, const double *clo, const double *cup, const int *hcol, CoinBigIndex krs, CoinBigIndex kre, double *maxupp, double *maxdownp, int jcol, double rlo, double rup, double *iclb, double *icub)
void postsolve(CoinPostsolveMatrix *prob) const
Apply the postsolve transformation for this particular presolve action.
virtual ~subst_constraint_action()