Cbc  2.10.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CoinPresolveTripleton.hpp
Go to the documentation of this file.
1 /* $Id: CoinPresolveTripleton.hpp 2083 2019-01-06 19:38:09Z unxusr $ */
2 // Copyright (C) 2003, 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 CoinPresolveTripleton_H
7 #define CoinPresolveTripleton_H
8 #define TRIPLETON 11
9 
16 public:
17  struct action {
18  int icolx;
19  int icolz;
20  int row;
21 
22  int icoly;
23  double cloy;
24  double cupy;
25  double costy;
26  double clox;
27  double cupx;
28  double costx;
29 
30  double rlo;
31  double rup;
32 
33  double coeffx;
34  double coeffy;
35  double coeffz;
36 
37  double *colel;
38 
39  int ncolx;
40  int ncoly;
41  };
42 
43  const int nactions_;
44  const action *const actions_;
45 
46 private:
47  tripleton_action(int nactions,
48  const action *actions,
49  const CoinPresolveAction *next)
50  : CoinPresolveAction(next)
51  , nactions_(nactions)
52  , actions_(actions)
53  {
54  }
55 
56 public:
57  const char *name() const { return ("tripleton_action"); }
58 
60  const CoinPresolveAction *next);
61 
62  void postsolve(CoinPostsolveMatrix *prob) const;
63 
64  virtual ~tripleton_action();
65 };
66 #endif
67 
68 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
69 */
const char * name() const
A name for debug printing.
static const CoinPresolveAction * presolve(CoinPresolveMatrix *, const CoinPresolveAction *next)
Abstract base class of all presolve routines.
void postsolve(CoinPostsolveMatrix *prob) const
Apply the postsolve transformation for this particular presolve action.
const action *const actions_
tripleton_action(int nactions, const action *actions, const CoinPresolveAction *next)
const CoinPresolveAction * next
The next presolve transformation.
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during postsol...
virtual ~tripleton_action()
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during presolv...
We are only going to do this if it does not increase number of elements?.