CoinUtils 2.10.15

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CoinPresolveForcing.hpp
Go to the documentation of this file.
1 /* $Id: CoinPresolveForcing.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 CoinPresolveForcing_H
7 #define CoinPresolveForcing_H
8
9 #include "CoinPresolveMatrix.hpp"
10
15 #define IMPLIED_BOUND 7
16
27 class forcing_constraint_action : public CoinPresolveAction {
28 forcing_constraint_action();
29 forcing_constraint_action(const forcing_constraint_action& rhs);
30 forcing_constraint_action& operator=(const forcing_constraint_action& rhs);
31 public:
32 struct action {
33 const int *rowcols;
34 const double *bounds;
35 int row;
36 int nlo;
37 int nup;
38 };
39 private:
40 const int nactions_;
41 // actions_ is owned by the class and must be deleted at destruction
42 const action *const actions_;
43
44 public:
45 forcing_constraint_action(int nactions,
46 const action *actions,
47 const CoinPresolveAction *next) :
48 CoinPresolveAction(next),
49 nactions_(nactions), actions_(actions) {}
50
51 const char *name() const;
52
53 static const CoinPresolveAction *presolve(CoinPresolveMatrix * prob,
54 const CoinPresolveAction *next);
55
56 void postsolve(CoinPostsolveMatrix *prob) const;
57
58 virtual ~forcing_constraint_action();
59 };
60
61 #endif
forcing_constraint_action::actions_
const action *const actions_
Definition: CoinPresolveForcing.hpp:42
forcing_constraint_action::forcing_constraint_action
forcing_constraint_action()
forcing_constraint_action::action
Definition: CoinPresolveForcing.hpp:32
forcing_constraint_action::action::bounds
const double * bounds
Definition: CoinPresolveForcing.hpp:34
CoinPresolveAction
Abstract base class of all presolve routines.
Definition: CoinPresolveMatrix.hpp:155
forcing_constraint_action::action::row
int row
Definition: CoinPresolveForcing.hpp:35
forcing_constraint_action::name
const char * name() const
A name for debug printing.
forcing_constraint_action::forcing_constraint_action
forcing_constraint_action(int nactions, const action *actions, const CoinPresolveAction *next)
Definition: CoinPresolveForcing.hpp:45
CoinPresolveMatrix.hpp
Declarations for CoinPresolveMatrix and CoinPostsolveMatrix and their common base class CoinPrePostso...
forcing_constraint_action::postsolve
void postsolve(CoinPostsolveMatrix *prob) const
Apply the postsolve transformation for this particular presolve action.
CoinPresolveAction::next
const CoinPresolveAction * next
The next presolve transformation.
Definition: CoinPresolveMatrix.hpp:171
CoinPostsolveMatrix
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during postsol...
Definition: CoinPresolveMatrix.hpp:1421
forcing_constraint_action::action::nup
int nup
Definition: CoinPresolveForcing.hpp:37
forcing_constraint_action::~forcing_constraint_action
virtual ~forcing_constraint_action()
CoinPresolveMatrix
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during presolv...
Definition: CoinPresolveMatrix.hpp:835
forcing_constraint_action::nactions_
const int nactions_
Definition: CoinPresolveForcing.hpp:40
forcing_constraint_action::action::nlo
int nlo
Definition: CoinPresolveForcing.hpp:36
forcing_constraint_action::action::rowcols
const int * rowcols
Definition: CoinPresolveForcing.hpp:33
forcing_constraint_action::operator=
forcing_constraint_action & operator=(const forcing_constraint_action &rhs)
forcing_constraint_action::presolve
static const CoinPresolveAction * presolve(CoinPresolveMatrix *prob, const CoinPresolveAction *next)
forcing_constraint_action
Detect and process forcing constraints and useless constraints.
Definition: CoinPresolveForcing.hpp:27