CoinPresolveImpliedFree.hpp
Go to the documentation of this file.
1 /* $Id: CoinPresolveImpliedFree.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 CoinPresolveImpliedFree_H
6 #define CoinPresolveInpliedFree_H
7 
12 #define IMPLIED_FREE 9
13 
29  struct action {
30  int row, col;
31  double clo, cup;
32  double rlo, rup;
33  const double *rowels;
34  const double *costs;
35  int ninrow;
36  };
37 
38  const int nactions_;
39  const action *const actions_;
40 
41  implied_free_action(int nactions,
42  const action *actions,
43  const CoinPresolveAction *next) :
44  CoinPresolveAction(next),
45  nactions_(nactions), actions_(actions) {}
46 
47  public:
48  const char *name() const;
49 
50  static const CoinPresolveAction *presolve(CoinPresolveMatrix * prob,
51  const CoinPresolveAction *next,
52  int & fillLevel);
53 
54  void postsolve(CoinPostsolveMatrix *prob) const;
55 
57 };
58 
59 #endif