source: branches/devel-1/include/PresolveSubst.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: 1.2 KB
Line 
1// Copyright (C) 2002, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#ifndef PresolveSubst_H
5#define PresolveSubst_H
6#define SUBST_ROW       21
7
8
9class subst_constraint_action : public PresolveAction {
10  struct action {
11    int col;
12    int rowx;
13    int rowy;
14
15    int nincol;
16    int *rows;
17    double *rlos;
18    double *rups;
19
20    double *coeffxs;
21   
22    int *ninrowxs;
23    /*const*/ int *rowcolsxs;
24    /*const*/ double *rowelsxs;
25
26    const double *costsx;
27  };
28
29  const int nactions_;
30  const action *const actions_;
31
32  subst_constraint_action(int nactions,
33                          action *actions,
34                      const PresolveAction *next) :
35    PresolveAction(next),
36    nactions_(nactions), actions_(actions) {};
37
38 public:
39  const char *name() const;
40
41  static const PresolveAction *presolve(PresolveMatrix * prob,
42                                         char *implied_free,
43                                         const PresolveAction *next,
44                                        int & fill_level);
45
46  void postsolve(PostsolveMatrix *prob) const;
47
48  ~subst_constraint_action();
49};
50
51
52
53
54
55/*static*/ void implied_bounds(const double *els,
56                           const double *clo, const double *cup,
57                           const int *hcol,
58                           int krs, int kre,
59                           double *maxupp, double *maxdownp,
60                           int jcol,
61                           double rlo, double rup,
62                           double *iclb, double *icub);
63#endif
Note: See TracBrowser for help on using the repository browser.