diff options
author | Harpreet | 2016-09-03 00:34:27 +0530 |
---|---|---|
committer | Harpreet | 2016-09-03 00:34:27 +0530 |
commit | 4b64cf486f5c999fd8167758cae27839f3b50848 (patch) | |
tree | d9d06639fb7fa61aef59be0363655e4747105ec7 /build/Bonmin/include/coin/CoinPresolveZeros.hpp | |
parent | d19794fb80a271a4c885ed90f97cfc12baa012f2 (diff) | |
download | FOSSEE-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 'build/Bonmin/include/coin/CoinPresolveZeros.hpp')
-rw-r--r-- | build/Bonmin/include/coin/CoinPresolveZeros.hpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/build/Bonmin/include/coin/CoinPresolveZeros.hpp b/build/Bonmin/include/coin/CoinPresolveZeros.hpp deleted file mode 100644 index 219e613..0000000 --- a/build/Bonmin/include/coin/CoinPresolveZeros.hpp +++ /dev/null @@ -1,60 +0,0 @@ -/* $Id: CoinPresolveZeros.hpp 1498 2011-11-02 15:25:35Z mjs $ */ -// 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 CoinPresolveZeros_H -#define CoinPresolveZeros_H - -/*! \file - - Drop/reintroduce explicit zeros. -*/ - -#define DROP_ZERO 8 - -/*! \brief Tracking information for an explicit zero coefficient - - \todo Why isn't this a nested class in drop_zero_coefficients_action? - That would match the structure of other presolve classes. -*/ - -struct dropped_zero { - int row; - int col; -}; - -/*! \brief Removal of explicit zeros - - The presolve action for this class removes explicit zeros from the constraint - matrix. The postsolve action puts them back. -*/ -class drop_zero_coefficients_action : public CoinPresolveAction { - - const int nzeros_; - const dropped_zero *const zeros_; - - drop_zero_coefficients_action(int nzeros, - const dropped_zero *zeros, - const CoinPresolveAction *next) : - CoinPresolveAction(next), - nzeros_(nzeros), zeros_(zeros) -{} - - public: - const char *name() const { return ("drop_zero_coefficients_action"); } - - static const CoinPresolveAction *presolve(CoinPresolveMatrix *prob, - int *checkcols, - int ncheckcols, - const CoinPresolveAction *next); - - void postsolve(CoinPostsolveMatrix *prob) const; - - virtual ~drop_zero_coefficients_action() { deleteAction(zeros_,dropped_zero*); } -}; - -const CoinPresolveAction *drop_zero_coefficients(CoinPresolveMatrix *prob, - const CoinPresolveAction *next); - -#endif |