GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
gcgvarhistory.h
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
4/* GCG --- Generic Column Generation */
5/* a Dantzig-Wolfe decomposition based extension */
6/* of the branch-cut-and-price framework */
7/* SCIP --- Solving Constraint Integer Programs */
8/* */
9/* Copyright (C) 2010-2026 Operations Research, RWTH Aachen University */
10/* Zuse Institute Berlin (ZIB) */
11/* */
12/* Licensed under the Apache License, Version 2.0 (the "License"); */
13/* you may not use this file except in compliance with the License. */
14/* You may obtain a copy of the License at */
15/* */
16/* http://www.apache.org/licenses/LICENSE-2.0 */
17/* */
18/* Unless required by applicable law or agreed to in writing, software */
19/* distributed under the License is distributed on an "AS IS" BASIS, */
20/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
21/* See the License for the specific language governing permissions and */
22/* limitations under the License. */
23/* */
24/* You should have received a copy of the Apache-2.0 license */
25/* along with GCG; see the file LICENSE. If not visit gcg.or.rwth-aachen.de.*/
26/* */
27/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28
29/**@file gcgvarhistory.h
30 * @ingroup INTERNALAPI-GCG
31 * @brief methods for managing variable history
32 * @author Til Mohr
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37
38#ifndef GCG_GCGVARHISTORY_H__
39#define GCG_GCGVARHISTORY_H__
40
41#include "scip/scip.h"
42
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/** get the variable behinde the pointer */
51 GCG_VARHISTORY* pointer, /**< pointer to the history */
52 SCIP_VAR** var /**< pointer to store the variable */
53 );
54
55/** check if there is a next history event */
57 GCG_VARHISTORY* pointer /**< pointer to the history */
58 );
59
60/** get the next history event */
62 SCIP* scip, /**< SCIP data structure */
63 GCG_VARHISTORY** pointer /**< pointer to the history */
64 );
65
66/** jump to the latest history event */
68 SCIP* scip, /**< SCIP data structure */
69 GCG_VARHISTORY* pointer /**< pointer to the history */
70 );
71
72/** jump to the latest history event and retrieve all new variables */
74 SCIP* scip, /**< SCIP data structure */
75 GCG_VARHISTORY* pointer, /**< pointer to the history */
76 SCIP_VAR*** vars, /**< pointer to store the variables */
77 int* nvars /**< pointer to store the number of variables */
78 );
79
80/** create a new history pointer to an empty existing buffer and captures it */
82 SCIP* scip, /**< SCIP data structure */
83 GCG_VARHISTORY** pointer /**< pointer to the history */
84 );
85
86/** copy a pointer by creating a new one that points to the same buffer at the same position and capture it */
88 SCIP* scip, /**< SCIP data structure */
89 GCG_VARHISTORY** pointer, /**< pointer to the history */
90 GCG_VARHISTORY* source /**< source pointer */
91 );
92
93/** release the reference to the buffer and free the history pointer */
95 SCIP* scip, /**< SCIP data structure */
96 GCG_VARHISTORY** pointer /**< pointer to the history */
97 );
98
99/** add variable to history */
101 SCIP* scip, /**< SCIP data structure */
102 GCG_VARHISTORY* pointer, /**< pointer to the history */
103 SCIP_VAR* var /**< variable */
104 );
105
106/** capture a reference to the history */
108 GCG_VARHISTORYBUFFER* buffer /**< buffer */
109 );
110
111/** release a reference to the history */
113 SCIP* scip, /**< SCIP data structure */
114 GCG_VARHISTORYBUFFER** buffer /**< buffer */
115 );
116
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif
#define SCIP_Bool
SCIP_RETCODE GCGvarhistoryFreeReference(SCIP *scip, GCG_VARHISTORY **pointer)
SCIP_RETCODE GCGvarhistoryJumpAndRetrieveVars(SCIP *scip, GCG_VARHISTORY *pointer, SCIP_VAR ***vars, int *nvars)
SCIP_RETCODE GCGvarhistoryNext(SCIP *scip, GCG_VARHISTORY **pointer)
SCIP_RETCODE GCGvarhistoryAddVar(SCIP *scip, GCG_VARHISTORY *pointer, SCIP_VAR *var)
SCIP_RETCODE GCGvarhistoryReleaseBuffer(SCIP *scip, GCG_VARHISTORYBUFFER **buffer)
SCIP_RETCODE GCGvarhistoryJumpToLatest(SCIP *scip, GCG_VARHISTORY *pointer)
SCIP_RETCODE GCGvarhistoryCreate(SCIP *scip, GCG_VARHISTORY **pointer)
SCIP_RETCODE GCGvarhistoryCaptureBuffer(GCG_VARHISTORYBUFFER *buffer)
SCIP_RETCODE GCGvarhistoryGetVar(GCG_VARHISTORY *pointer, SCIP_VAR **var)
SCIP_RETCODE GCGvarhistoryCopyReference(SCIP *scip, GCG_VARHISTORY **pointer, GCG_VARHISTORY *source)
SCIP_Bool GCGvarhistoryHasNext(GCG_VARHISTORY *pointer)
SCIP_VAR * var
SCIP_VAR ** vars
int nvars
type definitions for managing variable history
struct GCG_VarHistory GCG_VARHISTORY
struct GCG_VarHistoryBuffer GCG_VARHISTORYBUFFER
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP
struct SCIP_Var SCIP_VAR