Blis
0.95.0
Loading...
Searching...
No Matches
src
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
38
class
BLISLIB_EXPORT
BlisPresolve
:
public
OsiPresolve
39
{
40
private
:
41
42
CoinPresolveMatrix *preMatrix_;
43
CoinPostsolveMatrix *postMatrix_;
44
45
public
:
46
48
BlisPresolve
() :
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
//#############################################################################
BlisConfig.h
BlisPresolve
A interface to Osi/Coin Presolve.
Definition
BlisPresolve.h:39
BlisPresolve::postprocess
virtual void postprocess(bool updateStatus=true)
Postsolve.
BlisPresolve::~BlisPresolve
virtual ~BlisPresolve()
Virtual destructor.
Definition
BlisPresolve.h:53
BlisPresolve::BlisPresolve
BlisPresolve()
Default constructor (empty object)
Definition
BlisPresolve.h:48
BlisPresolve::preprocess
virtual OsiSolverInterface * preprocess(OsiSolverInterface &origModel, double feasibilityTolerance=0.0, bool keepIntegers=true, int numberPasses=5, const char *prohibited=NULL)
Presolve.
BLISLIB_EXPORT
#define BLISLIB_EXPORT
Definition
config.h:5
Generated by
1.10.0