Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
var
build
temp
tmp.zNsxVc98AG
4.0-0-0
coinutils
coinutils-2.6.4
CoinUtils
src
CoinPresolveZeros.hpp
Go to the documentation of this file.
1
/* $Id: CoinPresolveZeros.hpp 1215 2009-11-05 11:03:04Z forrest $ */
2
// Copyright (C) 2002, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
5
#ifndef CoinPresolveZeros_H
6
#define CoinPresolveZeros_H
7
13
#define DROP_ZERO 8
14
21
struct
dropped_zero
{
22
int
row
;
23
int
col
;
24
};
25
31
class
drop_zero_coefficients_action
:
public
CoinPresolveAction
{
32
33
const
int
nzeros_
;
34
const
dropped_zero
*
const
zeros_
;
35
36
drop_zero_coefficients_action
(
int
nzeros,
37
const
dropped_zero
*zeros,
38
const
CoinPresolveAction
*
next
) :
39
CoinPresolveAction
(next),
40
nzeros_
(nzeros),
zeros_
(zeros)
41
{}
42
43
public
:
44
const
char
*
name
()
const
{
return
(
"drop_zero_coefficients_action"
); }
45
46
static
const
CoinPresolveAction
*
presolve
(
CoinPresolveMatrix
*prob,
47
int
*checkcols,
48
int
ncheckcols,
49
const
CoinPresolveAction
*
next
);
50
51
void
postsolve
(
CoinPostsolveMatrix
*prob)
const
;
52
53
~drop_zero_coefficients_action
() {
deleteAction
(
zeros_
,
dropped_zero
*); }
54
};
55
56
const
CoinPresolveAction
*
drop_zero_coefficients
(
CoinPresolveMatrix
*prob,
57
const
CoinPresolveAction
*next);
58
59
#endif
Generated on Mon Mar 17 2014 20:16:58 by
1.8.1.2