source: branches/devel-1/include/PresolveForcing.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:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 993 bytes
Line 
1// Copyright (C) 2002, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#ifndef PresolveForcing_H
5#define PresolveForcing_H
6#define IMPLIED_BOUND   7
7
8class forcing_constraint_action : public PresolveAction {
9  struct action {
10    int row;
11    int nlo;
12    int nup;
13    const int *rowcols;
14    const double *bounds;
15  };
16
17  const int nactions_;
18  const action *const actions_;
19
20  forcing_constraint_action(int nactions,
21                      const action *actions,
22                      const PresolveAction *next) :
23    PresolveAction(next),
24    nactions_(nactions), actions_(actions) {};
25
26 public:
27  const char *name() const;
28
29  static const PresolveAction *presolve(PresolveMatrix * prob,
30                                         const PresolveAction *next);
31
32  void postsolve(PostsolveMatrix *prob) const;
33
34  ~forcing_constraint_action() { delete[]actions_; }
35};
36
37
38
39
40// HACK - from doubleton.cpp
41void compact_rep(double *elems, int *indices, int *starts, const int *lengths, int n,
42                 const presolvehlink *link);
43
44#endif
Note: See TracBrowser for help on using the repository browser.