Loading...
Searching...
No Matches
gcgvarhistory.c
Go to the documentation of this file.
139 assert(((*pointer)->buffer->nvars == GCG_VARHISTORYBUFFER_SIZE) >= ((*pointer)->buffer->next != NULL));
191 assert((pointer->buffer->nvars == GCG_VARHISTORYBUFFER_SIZE) >= (pointer->buffer->next != NULL));
230 assert((pointer->buffer->nvars == GCG_VARHISTORYBUFFER_SIZE) >= (pointer->buffer->next != NULL));
336/** copy a pointer by creating a new one that points to the same buffer at the same position and capture it */
366 assert(((*pointer)->buffer->nvars == GCG_VARHISTORYBUFFER_SIZE) >= ((*pointer)->buffer->next != NULL));
405 buffer->nuses = 2; // one for the current buffer pointing to the new one and one for the current pointer
#define SCIP_Bool
#define TRUE
#define FALSE
SCIP_RETCODE GCGvarhistoryFreeReference(SCIP *scip, GCG_VARHISTORY **pointer)
Definition gcgvarhistory.c:358
SCIP_RETCODE GCGvarhistoryJumpAndRetrieveVars(SCIP *scip, GCG_VARHISTORY *pointer, SCIP_VAR ***vars, int *nvars)
Definition gcgvarhistory.c:213
SCIP_RETCODE GCGvarhistoryNext(SCIP *scip, GCG_VARHISTORY **pointer)
Definition gcgvarhistory.c:125
SCIP_RETCODE GCGvarhistoryAddVar(SCIP *scip, GCG_VARHISTORY *pointer, SCIP_VAR *var)
Definition gcgvarhistory.c:381
SCIP_RETCODE GCGvarhistoryReleaseBuffer(SCIP *scip, GCG_VARHISTORYBUFFER **buffer)
Definition gcgvarhistory.c:438
SCIP_RETCODE GCGvarhistoryJumpToLatest(SCIP *scip, GCG_VARHISTORY *pointer)
Definition gcgvarhistory.c:180
SCIP_RETCODE GCGvarhistoryCreate(SCIP *scip, GCG_VARHISTORY **pointer)
Definition gcgvarhistory.c:314
SCIP_RETCODE GCGvarhistoryCaptureBuffer(GCG_VARHISTORYBUFFER *buffer)
Definition gcgvarhistory.c:427
SCIP_RETCODE GCGvarhistoryGetVar(GCG_VARHISTORY *pointer, SCIP_VAR **var)
Definition gcgvarhistory.c:72
SCIP_RETCODE GCGvarhistoryCopyReference(SCIP *scip, GCG_VARHISTORY **pointer, GCG_VARHISTORY *source)
Definition gcgvarhistory.c:337
static SCIP_RETCODE historybufferFree(SCIP *scip, GCG_VARHISTORYBUFFER **buffer)
Definition gcgvarhistory.c:39
SCIP_Bool GCGvarhistoryHasNext(GCG_VARHISTORY *pointer)
Definition gcgvarhistory.c:96
methods for managing variable history
#define SCIPallocBlockMemoryArray(scip, ptr, num)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
SCIP_RETCODE SCIPreleaseVar(SCIP *scip, SCIP_VAR **var)
SCIP_RETCODE SCIPcaptureVar(SCIP *scip, SCIP_VAR *var)
static assert(heur !=NULL)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
SCIPdebugMessage("feasibility pump finished [%d iterations done].\n", nloops)
#define NULL
SCIP_VAR * vars[GCG_VARHISTORYBUFFER_SIZE]
Definition struct_gcgvarhistory.h:55
data structures for managing variable history
struct GCG_VarHistoryBuffer GCG_VARHISTORYBUFFER
Definition type_gcgvarhistory.h:44
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP
struct SCIP_Var SCIP_VAR