source: branches/devel-1/include/PresolveZeros.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: 917 bytes
Line 
1// Copyright (C) 2002, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#ifndef PresolveZeros_H
5#define PresolveZeros_H
6
7#define DROP_ZERO       8
8
9class drop_zero_coefficients_action : public PresolveAction {
10
11  const int nzeros_;
12  const dropped_zero *const zeros_;
13
14  drop_zero_coefficients_action(int nzeros,
15                                const dropped_zero *zeros,
16                                const PresolveAction *next) :
17    PresolveAction(next),
18    nzeros_(nzeros), zeros_(zeros)
19{}
20
21 public:
22  const char *name() const { return ("drop_zero_coefficients_action"); }
23
24  static const PresolveAction *presolve(PresolveMatrix *prob,
25                                         int *checkcols,
26                                         int ncheckcols,
27                                         const PresolveAction *next);
28
29  void postsolve(PostsolveMatrix *prob) const;
30
31  ~drop_zero_coefficients_action() { delete[]zeros_; }
32};
33
34const PresolveAction *drop_zero_coefficients(PresolveMatrix *prob,
35                                              const PresolveAction *next);
36
37#endif
Note: See TracBrowser for help on using the repository browser.