summaryrefslogtreecommitdiff
path: root/newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp')
-rw-r--r--newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp63
1 files changed, 63 insertions, 0 deletions
diff --git a/newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp b/newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp
new file mode 100644
index 0000000..624a373
--- /dev/null
+++ b/newstructure/thirdparty/linux/include/coin/CoinPresolveUseless.hpp
@@ -0,0 +1,63 @@
+/* $Id: CoinPresolveUseless.hpp 1566 2012-11-29 19:33:56Z lou $ */
+// Copyright (C) 2002, International Business Machines
+// Corporation and others. All Rights Reserved.
+// This code is licensed under the terms of the Eclipse Public License (EPL).
+
+#ifndef CoinPresolveUseless_H
+#define CoinPresolveUseless_H
+#define USELESS 20
+
+class useless_constraint_action : public CoinPresolveAction {
+ struct action {
+ double rlo;
+ double rup;
+ const int *rowcols;
+ const double *rowels;
+ int row;
+ int ninrow;
+ };
+
+ const int nactions_;
+ const action *const actions_;
+
+ useless_constraint_action(int nactions,
+ const action *actions,
+ const CoinPresolveAction *next);
+
+ public:
+ const char *name() const;
+
+ // These rows are asserted to be useless,
+ // that is, given a solution the row activity
+ // must be in range.
+ static const CoinPresolveAction *presolve(CoinPresolveMatrix * prob,
+ const int *useless_rows,
+ int nuseless_rows,
+ const CoinPresolveAction *next);
+
+ void postsolve(CoinPostsolveMatrix *prob) const;
+
+ virtual ~useless_constraint_action();
+
+};
+
+/*! \relates useless_constraint_action
+ \brief Scan constraints looking for useless constraints
+
+ A front end to identify useless constraints and hand them to
+ useless_constraint_action::presolve() for processing.
+
+ In a bit more detail, the routine implements a greedy algorithm that
+ identifies a set of necessary constraints. A constraint is necessary if it
+ implies a tighter bound on a variable than the original column bound. These
+ tighter column bounds are then used to calculate row activity and identify
+ constraints that are useless given the presence of the necessary
+ constraints.
+*/
+
+const CoinPresolveAction *testRedundant(CoinPresolveMatrix *prob,
+ const CoinPresolveAction *next) ;
+
+
+
+#endif