Dip
0.92.4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tmp
Dip-0.92.4
Dip
examples
MMKP
MMKP_MemPool.h
Go to the documentation of this file.
1
//===========================================================================//
2
// This file is part of the Decomp Solver Framework. //
3
// //
4
// Decomp is distributed under the Common Public License as part of the //
5
// COIN-OR repository (http://www.coin-or.org). //
6
// //
7
// Authors: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8
// Ted Ralphs, Lehigh University (ted@lehigh.edu) //
9
// Jiadong Wang, Lehigh University (jiw408@lehigh.edu) //
10
// //
11
// Copyright (C) 2002-2019, Lehigh University, Matthew Galati, and Ted Ralphs//
12
// All Rights Reserved. //
13
//===========================================================================//
14
15
#ifndef MMKP_MEMPOOL_INCLUDED
16
#define MMKP_MEMPOOL_INCLUDED
17
18
#include "
CoinError.hpp
"
19
20
// --------------------------------------------------------------------- //
21
class
MMKP_MemPool
{
22
public
:
23
double
*
dblArrNCoreCols
;
24
25
public
:
26
void
allocateMemory
(
const
int
nCoreCols) {
27
28
if
(nCoreCols > 0){
29
//intArrNCoreCols = new int[nCoreCols];
30
dblArrNCoreCols
=
new
double
[nCoreCols];
31
//pIntDblArrNCoreCols = new pair<int,double>[nCoreCols];
32
//CoinAssertHint(intArrNCoreCols &&
33
// dblArrNCoreCols &&
34
// pIntDblArrNCoreCols,
35
// "Error: Out of Memory");
36
}
37
}
38
39
public
:
40
MMKP_MemPool
() :
41
dblArrNCoreCols
(0)
42
{}
43
~MMKP_MemPool
()
44
{
45
UTIL_DELARR
(
dblArrNCoreCols
);
46
}
47
};
48
49
#endif
MMKP_MemPool
Definition:
MMKP_MemPool.h:21
MMKP_MemPool::allocateMemory
void allocateMemory(const int nCoreCols)
Definition:
MMKP_MemPool.h:26
CoinError.hpp
UTIL_DELARR
#define UTIL_DELARR(x)
Definition:
UtilMacros.h:29
MMKP_MemPool::MMKP_MemPool
MMKP_MemPool()
Definition:
MMKP_MemPool.h:40
MMKP_MemPool::dblArrNCoreCols
double * dblArrNCoreCols
Definition:
MMKP_MemPool.h:23
MMKP_MemPool::~MMKP_MemPool
~MMKP_MemPool()
Definition:
MMKP_MemPool.h:43
Generated by
1.8.5