Blis 0.95.0
Loading...
Searching...
No Matches
BlisPresolve.h
Go to the documentation of this file.
1/*===========================================================================*
2 * This file is part of the BiCePS Linear Integer Solver (BLIS). *
3 * *
4 * BLIS is distributed under the Eclipse Public License as part of the *
5 * COIN-OR repository (http://www.coin-or.org). *
6 * *
7 * Authors: *
8 * *
9 * Yan Xu, Lehigh University *
10 * Ted Ralphs, Lehigh University *
11 * *
12 * Conceptual Design: *
13 * *
14 * Yan Xu, Lehigh University *
15 * Ted Ralphs, Lehigh University *
16 * Laszlo Ladanyi, IBM T.J. Watson Research Center *
17 * Matthew Saltzman, Clemson University *
18 * *
19 * *
20 * Copyright (C) 2001-2023, Lehigh University, Yan Xu, and Ted Ralphs. *
21 * All Rights Reserved. *
22 *===========================================================================*/
23
24#ifndef BlisPresolve_H_
25#define BlisPresolve_H_
26
27#if defined(_MSC_VER)
28// Turn off compiler warning about long names
29# pragma warning(disable:4786)
30#endif
31
32#include "OsiPresolve.hpp"
33#include "BlisConfig.h"
34
35//#############################################################################
36
38class BLISLIB_EXPORT BlisPresolve : public OsiPresolve
39{
40private:
41
42 CoinPresolveMatrix *preMatrix_;
43 CoinPostsolveMatrix *postMatrix_;
44
45public:
46
49 preMatrix_(0),
50 postMatrix_(0) {}
51
53 virtual ~BlisPresolve() {
54 delete preMatrix_;
55 delete postMatrix_;
56 }
57
59 virtual OsiSolverInterface *preprocess(OsiSolverInterface & origModel,
60 double feasibilityTolerance=0.0,
61 bool keepIntegers=true,
62 int numberPasses=5,
63 const char * prohibited=NULL);
64
66 virtual void postprocess(bool updateStatus=true);
67};
68
69#endif
70
71//#############################################################################
virtual void postprocess(bool updateStatus=true)
Postsolve.
virtual ~BlisPresolve()
Virtual destructor.
BlisPresolve()
Default constructor (empty object)
virtual OsiSolverInterface * preprocess(OsiSolverInterface &origModel, double feasibilityTolerance=0.0, bool keepIntegers=true, int numberPasses=5, const char *prohibited=NULL)
Presolve.
#define BLISLIB_EXPORT
Definition config.h:5