Detailed Description
methods for storing cols in a col pool (based on SCIP's cut pool)
Definition in file colpool.c.
#include <assert.h>#include "scip/clock.h"#include "gcg/gcg.h"#include "gcg/pub_gcgcol.h"#include "gcg/colpool.h"#include "gcg/struct_colpool.h"#include "gcg/pricestore_gcg.h"#include "gcg/struct_pricestore_gcg.h"#include "gcg/pricer_gcg.h"#include "gcg/struct_gcgcol.h"Go to the source code of this file.
Macros | |
| #define | GCG_USESMALLTABLES FALSE |
| #define | GCG_HASHSIZE_COLPOOLS_SMALL 100 |
| #define | GCG_HASHSIZE_COLPOOLS 500 |
Macro Definition Documentation
◆ GCG_USESMALLTABLES
◆ GCG_HASHSIZE_COLPOOLS_SMALL
| #define GCG_HASHSIZE_COLPOOLS_SMALL 100 |
◆ GCG_HASHSIZE_COLPOOLS
| #define GCG_HASHSIZE_COLPOOLS 500 |
Function Documentation
◆ colpoolEnsureColsMem()
|
static |
resizes cols array to be able to store at least num entries
- Parameters
-
colpool col pool num minimal number of slots in array
Definition at line 60 of file colpool.c.
References GCG_Colpool::cols, GCG_Colpool::colssize, NULL, GCG_Colpool::scip, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray.
Referenced by GCGcolpoolAddNewCol().
◆ colpoolDelCol()
|
static |
removes the col from the col pool
- Parameters
-
colpool col pool col col to remove freecol should the col be freed?
Definition at line 156 of file colpool.c.
References GCG_Colpool::cols, GCG_Colpool::firstunprocessed, GCG_Colpool::firstunprocessedsol, GCGfreeGcgCol(), GCG_Colpool::hashtable, GCG_Colpool::ncols, NULL, GCG_Col::pos, SCIP_CALL, SCIP_OKAY, SCIPhashtableExists(), and SCIPhashtableRemove().
Referenced by GCGcolpoolClear(), GCGcolpoolDelCol(), GCGcolpoolPrice(), and GCGcolpoolPropagateGlobalBounds().