CoinPresolveDoubleton.hpp
Go to the documentation of this file.
1 /* $Id: CoinPresolveDoubleton.hpp 1215 2009-11-05 11:03:04Z forrest $ */
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 
5 #ifndef CoinPresolveDoubleton_H
6 #define CoinPresolveDoubleton_H
7 
8 #define DOUBLETON 5
9 
26  public:
27  struct action {
28 
29  double clox;
30  double cupx;
31  double costx;
32 
33  double costy;
34 
35  double rlo;
36 
37  double coeffx;
38  double coeffy;
39 
40  double *colel;
41 
42  int icolx;
43  int icoly;
44  int row;
45  int ncolx;
46  int ncoly;
47  };
48 
49  const int nactions_;
50  const action *const actions_;
51 
52  private:
53  doubleton_action(int nactions,
54  const action *actions,
55  const CoinPresolveAction *next) :
56  CoinPresolveAction(next),
57  nactions_(nactions), actions_(actions)
58 {}
59 
60  public:
61  const char *name() const { return ("doubleton_action"); }
62 
64  const CoinPresolveAction *next);
65 
66  void postsolve(CoinPostsolveMatrix *prob) const;
67 
69 };
70 #endif
71 
72