- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

CoinPresolveZeros.hpp
Go to the documentation of this file.
1 /* $Id: CoinPresolveZeros.hpp 1498 2011-11-02 15:25:35Z mjs $ */
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5
6 #ifndef CoinPresolveZeros_H
7 #define CoinPresolveZeros_H
8
14 #define DROP_ZERO 8
15
22 struct dropped_zero {
23 int row;
24 int col;
25 };
26
32 class drop_zero_coefficients_action : public CoinPresolveAction {
33
34 const int nzeros_;
35 const dropped_zero *const zeros_;
36
37 drop_zero_coefficients_action(int nzeros,
38 const dropped_zero *zeros,
39 const CoinPresolveAction *next) :
40 CoinPresolveAction(next),
41 nzeros_(nzeros), zeros_(zeros)
42 {}
43
44 public:
45 const char *name() const { return ("drop_zero_coefficients_action"); }
46
47 static const CoinPresolveAction *presolve(CoinPresolveMatrix *prob,
48 int *checkcols,
49 int ncheckcols,
50 const CoinPresolveAction *next);
51
52 void postsolve(CoinPostsolveMatrix *prob) const;
53
54 virtual ~drop_zero_coefficients_action() { deleteAction(zeros_,dropped_zero*); }
55 };
56
57 const CoinPresolveAction *drop_zero_coefficients(CoinPresolveMatrix *prob,
58 const CoinPresolveAction *next);
59
60 #endif
drop_zero_coefficients
const CoinPresolveAction * drop_zero_coefficients(CoinPresolveMatrix *prob, const CoinPresolveAction *next)
CoinPostsolveMatrix
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during postsol...
Definition: CoinPresolveMatrix.hpp:1421
CoinPresolveMatrix
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during presolv...
Definition: CoinPresolveMatrix.hpp:835
deleteAction
#define deleteAction(array, type)
Definition: CoinPresolveMatrix.hpp:38
drop_zero_coefficients_action::nzeros_
const int nzeros_
Definition: CoinPresolveZeros.hpp:34
drop_zero_coefficients_action::presolve
static const CoinPresolveAction * presolve(CoinPresolveMatrix *prob, int *checkcols, int ncheckcols, const CoinPresolveAction *next)
drop_zero_coefficients_action::~drop_zero_coefficients_action
virtual ~drop_zero_coefficients_action()
Definition: CoinPresolveZeros.hpp:54
dropped_zero::col
int col
Definition: CoinPresolveZeros.hpp:24
CoinPresolveAction
Abstract base class of all presolve routines.
Definition: CoinPresolveMatrix.hpp:155
drop_zero_coefficients_action::drop_zero_coefficients_action
drop_zero_coefficients_action(int nzeros, const dropped_zero *zeros, const CoinPresolveAction *next)
Definition: CoinPresolveZeros.hpp:37
dropped_zero
Tracking information for an explicit zero coefficient.
Definition: CoinPresolveZeros.hpp:22
drop_zero_coefficients_action::postsolve
void postsolve(CoinPostsolveMatrix *prob) const
Apply the postsolve transformation for this particular presolve action.
drop_zero_coefficients_action::name
const char * name() const
A name for debug printing.
Definition: CoinPresolveZeros.hpp:45
dropped_zero::row
int row
Definition: CoinPresolveZeros.hpp:23
drop_zero_coefficients_action::zeros_
const dropped_zero *const zeros_
Definition: CoinPresolveZeros.hpp:35
drop_zero_coefficients_action
Removal of explicit zeros.
Definition: CoinPresolveZeros.hpp:32
CoinPresolveAction::next
const CoinPresolveAction * next
The next presolve transformation.
Definition: CoinPresolveMatrix.hpp:171