source: branches/devel-1/include/PresolveImpliedFree.hpp @ 29

Last change on this file since 29 was 29, checked in by forrest, 18 years ago

Presolve (no changes to Makefile)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 915 bytes
Line 
1// Copyright (C) 2002, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#ifndef PresolveImpliedFree_H
5#define PresolveInpliedFree_H
6#define IMPLIED_FREE    9
7
8class implied_free_action : public PresolveAction {
9  struct action {
10    int row, col;
11    double clo, cup;
12    double rlo, rup;
13    int ninrow;
14    const double *rowels;
15    const int *rowcols;
16    const double *costs;
17  };
18
19  const int nactions_;
20  const action *const actions_;
21
22  implied_free_action(int nactions,
23                      const action *actions,
24                      const PresolveAction *next) :
25    PresolveAction(next),
26    nactions_(nactions), actions_(actions) {}
27
28 public:
29  const char *name() const;
30
31  static const PresolveAction *presolve(PresolveMatrix * prob,
32                                         const PresolveAction *next,
33                                        int & fillLevel);
34
35  void postsolve(PostsolveMatrix *prob) const;
36
37  ~implied_free_action() { delete[]actions_; }
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.