Definition in file mt_cutpool.h.
#include "EGlib.h"
#include "mt_gomory.h"
#include "mt_types.h"
#include "mt_cplex_cbk.h"
Include dependency graph for mt_cutpool.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | MTcut_init(__cut) memset(__cut,0,sizeof(MTcut_t)) |
initialize a cut structure | |
#define | MTcutHeap_get_free_cut(__cuth) ((__cuth)->next_free) |
return a pointer to the next free MTcut_t structure in the set | |
#define | MTcutHeap_get_ncuts(__cuth) (__cuth->heap.sz) |
return the number of stored cuts in the given MTcutHeap_t structure. | |
#define | MTcutHeapCnClear(__chcn) |
clear all internally allocated memory | |
#define | MTcutHeapCnInit(__chcn) |
initialize an MTcutHeapCn_t structure | |
#define | MTcutHeapSetCS(__cuth, __cutsel) ((__cuth)->control.cut_score = (__cutsel)) |
set the cutselection strategy | |
#define | MTcutHeapSetDominance(__cuth, __dom) ((__cuth)->control.dominance_check = (__dom)) |
set the dominance strategy | |
Functions | |
int | MTcut_check_dominance (const MTcut_t *const cut1, const MTcut_t *const cut2) |
check for dominance between cuts. | |
void | MTcut_clear (MTcut_t *const MTcut) |
free any internal memory asociated with an MTcut_t structure | |
void | MTcut_copy (MTcut_t *const dest, const MTcut_t *const src) |
copy a cut from one structure to the next | |
void | MTcut_rsz (MTcut_t *const MTcut, const int MTnsz) |
resize a cut structure | |
int | MTcutHeap_add_cut (const MTlp_t *const lp, MTcutHeap_t *const cuth) |
add the cut (obtained by MTcutHeap_get_free_cut) to the structure, and possibly discard a worst cut from the heap | |
MTcut_t * | MTcutHeap_pop_cut (MTcutHeap_t *const cuth) |
pop the worst remaining cut within an MTcutHeap_t structure. Note that the memory asociated with the returned MTcut_t structure is handled by the MTcutHeap_t structure, and should not be freed by the user. | |
void | MTcutHeapClear (MTcutHeap_t *const cuth) |
Clear any internal memory asociated with an MTcutHeap_t structure. Note that after a call to this function a new call to MTcutHeapInit should be made before using any other function over the strucutre. | |
void | MTcutHeapInit (MTcutHeap_t *const cuth, size_t sz) |
initialize an MTcutHeap_t structure |