Scippy

GCG

Branch-and-Price & Column Generation for Everyone

pub_gcgvar.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 pub_gcgvar.h
30 * @ingroup PUBLICCOREAPI
31 * @brief public methods for GCG variables
32 * @author Martin Bergner
33 * @author Christian Puchert
34 */
35
36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37
38#ifndef GCG_PUB_GCGVAR_H__
39#define GCG_PUB_GCGVAR_H__
40
41#include "gcg/type_decomp.h"
42#include "scip/scip.h"
43
44#ifdef NDEBUG
45#include "gcg/struct_vardata.h"
46#endif
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
52/**
53 * @ingroup TYPEDEFINITIONS
54 *
55 * @{
56 */
57
58#ifdef NDEBUG
59#define GCGvarIsPricing(var) (SCIPvarGetData(var)->vartype == GCG_VARTYPE_PRICING)
60#else
61/** returns TRUE or FALSE whether variable is a pricing variable or not */
64 SCIP_VAR* var /**< SCIP variable structure */
65 );
66#endif
67
68#ifdef NDEBUG
69#define GCGvarIsOriginal(var) (SCIPvarGetData(var)->vartype == GCG_VARTYPE_ORIGINAL)
70#else
71/** returns TRUE or FALSE whether variable is a original variable or not */
74 SCIP_VAR* var /**< SCIP variable structure */
75 );
76#endif
77
78#ifdef NDEBUG
79#define GCGvarIsMaster(var) (SCIPvarGetData(var)->vartype == GCG_VARTYPE_MASTER)
80#else
81/** returns TRUE or FALSE whether variable is a master variable or not */
84 SCIP_VAR* var /**< SCIP variable structure */
85 );
86#endif
87
88#ifdef NDEBUG
89#define GCGvarIsInferredPricing(var) (SCIPvarGetData(var)->vartype == GCG_VARTYPE_INFERREDPRICING)
90#else
91/** returns TRUE or FALSE whether variable is a inferred pricing variable or not
92 *
93 * inferred pricing variables are auxilary variables that are required by specific extended master conss */
96 SCIP_VAR* var /**< SCIP variable structure */
97 );
98#endif
99
100/** count the number of inferred (coefficient) pricing variables in a array of variables */
102 SCIP_VAR** vars, /**< array of variables */
103 int nvars /**< number of variables */
104 );
105
106#ifdef NDEBUG
107#define GCGoriginalVarIsLinking(var) (SCIPvarGetData(var)->blocknr == -2)
108#else
109/** returns TRUE or FALSE whether variable is a linking variable or not */
112 SCIP_VAR* var /**< SCIP variable structure */
113 );
114#endif
115
116#ifdef NDEBUG
117#define GCGoriginalVarIsTransVar(var) (SCIPvarGetData(var)->blocknr == -1)
118#else
119/** returns TRUE or FALSE whether variable is a directly transferred variable or not */
122 SCIP_VAR* var /**< SCIP variable structure */
123 );
124#endif
125
126#ifdef NDEBUG
127#define GCGpricingVarGetOriginalVar(var) (SCIPvarGetData(var)->data.pricingvardata.origvars[0])
128#else
129/** returns the original var of a pricing variable */
132 SCIP_VAR* var /**< SCIP variable structure */
133 );
134#endif
135
136/** adds the original var to the pricing variable */
139 SCIP* pricingprob, /**< pricingprob SCIP data structure */
140 SCIP_VAR* pricingvar, /**< pricing variable */
141 SCIP_VAR* origvar /**< original pricing variable */
142 );
143
144#ifdef NDEBUG
145#define GCGoriginalVarGetPricingVar(var) (SCIPvarGetData(var)->data.origvardata.pricingvar)
146#else
147/** returns the pricing var of an original variable */
150 SCIP_VAR* var /**< variable data structure */
151 );
152#endif
153
154/** sets the pricing var of an original variable */
157 SCIP_VAR* var, /**< SCIP variable structure */
158 SCIP_VAR* pricingvar /**< SCIP variable structure */
159 );
160
161/** copies the pricing variable data to a master problem variable. This is used in the Benders' decomposition mode when
162 * subproblems are merged into the master problem.
163 */
166 GCG* gcg, /**< GCG data structure */
167 SCIP_VAR* pricingvar, /**< the pricing problem variable is copied from */
168 SCIP_VAR* mastervar /**< the master variable that the vardata is copied to */
169 );
170
171#ifdef NDEBUG
172#define GCGlinkingVarGetPricingVars(var) (SCIPvarGetData(var)->data.origvardata.linkingvardata->pricingvars)
173#else
174/** returns the pricing variables of an linking variable */
177 SCIP_VAR* var /**< SCIP variable structure */
178 );
179#endif
180
181/** sets the pricing var of the corresponding linking variable at the specified position */
184 SCIP_VAR* origvar, /**< original variable */
185 int pricingprobnr, /**< number of pricing problem */
186 SCIP_VAR* var /**< pricing variable */
187 );
188
189#ifdef NDEBUG
190#define GCGoriginalVarGetNMastervars(var) (SCIPvarGetData(var)->data.origvardata.nmastervars)
191#else
192/** returns the number of master variables the original variable is contained in */
195 SCIP_VAR* var /**< variable data structure */
196 );
197#endif
198
199#ifdef NDEBUG
200#define GCGoriginalVarGetMastervars(var) (SCIPvarGetData(var)->data.origvardata.mastervars)
201#else
202/** returns the master variables the original variable is contained in */
205 SCIP_VAR* var /**< variable data structure */
206 );
207#endif
208
209#ifdef NDEBUG
210#define GCGoriginalVarGetMastervals(var) (SCIPvarGetData(var)->data.origvardata.mastervals)
211#else
212/** returns the fraction of master variables the original variable is contained in */
215 SCIP_VAR* var /**< variable data structure */
216 );
217#endif
218
219#ifdef NDEBUG
220#define GCGoriginalVarGetCoefs(var) (SCIPvarGetData(var)->data.origvardata.coefs)
221#else
222/** returns the fraction of master variables the original variable is contained in */
225 SCIP_VAR* var /**< variable data structure */
226 );
227#endif
228
229#ifdef NDEBUG
230#define GCGoriginalVarGetMasterconss(var) (SCIPvarGetData(var)->data.origvardata.masterconss)
231#else
232/** returns the fraction of master variables the original variable is contained in */
235 SCIP_VAR* var /**< variable data structure */
236 );
237#endif
238
239/** adds a coefficient of the master variable to the coefs array for the resp. constraint */
242 GCG* gcg, /**< GCG data structure */
243 SCIP_VAR* var, /**< variable to add coef */
244 SCIP_Real val, /**< coefficent to set */
245 SCIP_CONS* cons /**< constraint the variable is in */
246 );
247
248/** adds variable to a new block, making a linkingvariable out of it, if necessary */
251 GCG* gcg, /**< GCG data structure */
252 SCIP_VAR* var, /**< var that is added to a block */
253 int newblock, /**< the new block the variable will be in */
254 int nblocks, /**< total number of pricing problems */
255 GCG_DECMODE mode /**< the decomposition mode */
256 );
257
258#ifdef NDEBUG
259#define GCGlinkingVarGetLinkingConss(var) (SCIPvarGetData(var)->data.origvardata.linkingvardata->linkconss)
260#else
261/** returns the linking constraints */
264 SCIP_VAR* var /**< variable data structure */
265 );
266#endif
267
268/** sets the linking constraints*/
271 SCIP_VAR* var, /**< variable data structure */
272 SCIP_CONS* cons, /**< linking constraint */
273 int index /**< index of pricing problem */
274 );
275
276/** returns the blocks the linking variable is in */
279 SCIP_VAR* var, /**< SCIP variable structure */
280 int nblocks, /**< number of blocks the linking variable is in */
281 int* blocks /**< array to store the blocks of the linking variable */
282 );
283
284#ifdef NDEBUG
285#define GCGlinkingVarGetNBlocks(var) (SCIPvarGetData(var)->data.origvardata.linkingvardata->nblocks)
286#else
287/** returns the number of blocks the linking variable is in */
290 SCIP_VAR* var /**< SCIP variable structure */
291 );
292#endif
293
294#ifdef NDEBUG
295#define GCGoriginalVarGetNCoefs(var) (SCIPvarGetData(var)->data.origvardata.ncoefs)
296#else
297/** returns the number of coefficients of master constraints the original variable is contained in */
300 SCIP_VAR* var /**< SCIP variable structure */
301 );
302#endif
303
304/** sets the number of master variables the original variable is contained in */
307 SCIP_VAR* var, /**< SCIP variable structure */
308 int coef /**< number of coefficient to set */
309 );
310
311/** returns TRUE or FALSE whether a master variable is a direct copy of a linking variable or not */
314 SCIP_VAR* var /**< variable data structure */
315 );
316
317/** returns scip instance corresponding to master variable */
320 SCIP_VAR* var /**< variable data structure */
321 );
322
323#ifdef NDEBUG
324#define GCGmasterVarIsRay(var) (SCIPvarGetData(var)->data.mastervardata.isray)
325#else
326/** returns whether the master variable is a ray */
329 SCIP_VAR* var /**< variable data structure */
330 );
331#endif
332
333#ifdef NDEBUG
334#define GCGmasterVarIsArtificial(var) (SCIPvarGetData(var)->data.mastervardata.isartificial)
335#else
336/** returns TRUE or FALSE whether a master variable is an artificial variable */
339 SCIP_VAR* var /**< variable data structure */
340 );
341#endif
342
343#ifdef NDEBUG
344#define GCGmasterVarGetNOrigvars(var) (SCIPvarGetData(var)->data.mastervardata.norigvars)
345#else
346/** returns the number of original variables the master variable is contained in */
349 SCIP_VAR* var /**< variable data structure */
350 );
351#endif
352
353#ifdef NDEBUG
354#define GCGmasterVarGetOrigvars(var) (SCIPvarGetData(var)->data.mastervardata.origvars)
355#else
356/** returns the original variables the master variable is contained in */
359 SCIP_VAR* var /**< variable data structure */
360 );
361#endif
362
363#ifdef NDEBUG
364#define GCGmasterVarGetOrigvals(var) (SCIPvarGetData(var)->data.mastervardata.origvals)
365#else
366/** returns the fraction of original variables the master variable is contained in */
369 SCIP_VAR* var /**< variable data structure */
370 );
371#endif
372
373/** returns the fraction of the original variable the master variable is contained in */
376 SCIP_VAR* mastervar, /**< master variable data structure */
377 SCIP_VAR* origvar /**< original variable data structure */
378 );
379
380#ifdef NDEBUG
381#define GCGmasterVarGetOrigvalmap(var) (SCIPvarGetData(var)->data.mastervardata.origvar2val)
382#else
383/** returns a hash map that stores the fraction of original variables the master variable is contained in */
386 SCIP_VAR* var /**< master variable data structure */
387 );
388#endif
389
390#ifdef NDEBUG
391#define GCGpricingVarGetNOrigvars(var) (SCIPvarGetData(var)->data.pricingvardata.norigvars)
392#else
393/** returns the number of original variables the pricing variable is contained in */
396 SCIP_VAR* var /**< variable data structure */
397 );
398#endif
399
400#ifdef NDEBUG
401#define GCGpricingVarGetOrigvars(var) (SCIPvarGetData(var)->data.pricingvardata.origvars)
402#else
403/** returns the original variables the pricing variable is contained in */
406 SCIP_VAR* var /**< variable data structure */
407 );
408#endif
409
410#ifdef NDEBUG
411#define GCGvarGetBlock(var) (SCIPvarGetData(var)->blocknr)
412#else
413/** returns the block of the variable */
416 SCIP_VAR* var /**< variable data structure */
417 );
418#endif
419
420/** sets the block of the variable */
422void GCGvarSetBlock(
423 SCIP_VAR* var, /**< variable to set block for */
424 int block /**< block to set */
425 );
426
427/** creates the data for all variables of the original program */
430 GCG* gcg /**< GCG data structure */
431 );
432
433/** frees the data for all variables of the original program */
436 GCG* gcg /**< GCG data structure */
437 );
438
439/** creates the data for a variable of the original program */
442 GCG* gcg, /**< GCG data structure */
443 SCIP_VAR* var /**< pointer to variable object */
444 );
445
446#ifdef NDEBUG
447#define GCGisLinkingVarInBlock(var, block) (GCGlinkingVarGetPricingVars(var)[block] != NULL)
448#else
449/** returns TRUE if the linking variable is in the block, FALSE otherwise */
452 SCIP_VAR* var, /**< variable data structure */
453 int block /**< pricing problem number */
454 );
455#endif
456
457/** determines if the master variable is in the given block */
460 SCIP_VAR* mastervar, /**< master variable */
461 int blocknr /**< block number to check */
462 );
463
464/** informs an original variable, that a variable in the master problem was created,
465 * that contains a part of the original variable.
466 * Saves this information in the original variable's data
467 */
470 GCG* gcg, /**< GCG data structure */
471 SCIP_VAR* origvar, /**< original variable */
472 SCIP_VAR* var, /**< master variable */
473 SCIP_Real val /**< fraction of the original variable */
474 );
475
476/* informs an original variable, that a variable in the master problem was deleted,
477 * that contains a part of the original variable.
478 * Update the information in the original variable's data
479 */
482 GCG* gcg, /**< GCG data structure */
483 SCIP_VAR* origvar, /**< original variable */
484 SCIP_VAR* var /**< master variable */
485 );
486
487
488/** creates the corresponding pricing variable for the given original variable */
491 SCIP* pricingprob, /**< pricingprob SCIP data structure */
492 SCIP_VAR* origvar, /**< original variable */
493 SCIP_VAR** var /**< pricing variable */
494 );
495
496/** creates the corresponding pricing variable for the given original variable */
499 SCIP* pricingscip, /**< pricing problem SCIP data structure */
500 int pricingprobnr, /**< number of the pricing problem */
501 SCIP_VAR* origvar, /**< original variable */
502 SCIP_VAR** var /**< pointer to store new pricing variable */
503 );
504
505/** creates the corresponding constraint in the master problem for the linking variable */
508 GCG* gcg, /**< GCG data structure */
509 int pricingprobnr, /**< number of the pricing problem */
510 SCIP_VAR* origvar, /**< original variable */
511 SCIP_CONS** linkcons /**< constraint linking pricing variables */
512 );
513
514/** creates the master var and initializes the vardata */
517 GCG* gcg, /**< GCG data structure */
518 SCIP* pricingscip, /**< pricing problem SCIP data structure */
519 SCIP_VAR** newvar, /**< pointer to store new master variable */
520 const char* varname, /**< new variable name */
521 SCIP_Real objcoeff, /**< new objective coeffient */
522 SCIP_VARTYPE vartype, /**< new variable type */
523 SCIP_Bool solisray, /**< indicates whether new variable is a ray */
524 int prob, /**< number of pricing problem that created this variable */
525 int nsolvars, /**< number of variables in the solution */
526 SCIP_Real* solvals, /**< values of variables in the solution */
527 SCIP_VAR** solvars, /**< variables with non zero coefficient in the solution */
528 SCIP_Bool auxiliaryvar /**< is new variable an Benders' auxiliary variables? */
529 );
530
531/** creates initial master variables and the vardata */
534 GCG* gcg, /**< GCG data structure */
535 SCIP_VAR* var, /**< original variable */
536 SCIP_VAR** newvar /**< pointer to store new variable */
537 );
538
539/** creates artificial variable and the vardata */
542 GCG* gcg, /**< GCG data structure */
543 SCIP_VAR** newvar, /**< pointer to store new variable */
544 const char* name, /**< name of variable, or NULL for automatic name creation */
545 SCIP_Real objcoef /**< objective coefficient of artificial variable */
546 );
547
548/** creates a pricing variable inferred from an extended master cons
549 * that does not correspond to any original variable and its vardata */
551 SCIP* pricingscip, /**< pricing problem SCIP data structure */
552 SCIP_VAR** newvar, /**< pointer to store new master variable */
553 const char* varname, /**< new variable name */
554 SCIP_Real lb, /**< new variable lower bound */
555 SCIP_Real ub, /**< new objective coefficient */
556 SCIP_Bool iscoefvar, /**< is this a coefficient variable? (objcoeff can be 0 if TRUE but not != 0 if FALSE) */
557 SCIP_Real objcoeff, /**< new objective coefficient */
558 SCIP_VARTYPE vartype, /**< new variable type */
559 int prob /**< number of pricing problem that created this variable */
560 );
561
562/* adds the vardata to the auxiliary variable */
565 GCG* gcg, /**< GCG data structure */
566 SCIP_VAR* auxiliaryvar, /**< the auxiliary variable */
567 int probnumber /**< the subproblem number */
568 );
569
570/** sets the creation node of this var */
573 SCIP_VAR* var, /**< created variable */
574 SCIP_Longint creationNode /**< node */
575 );
576
577#ifdef NDEBUG
578#define GCGgetCreationNode(var) (SCIPvarGetData(var)->creationnode)
579#else
580/** returns the creation node of this var */
582long long int GCGgetCreationNode(
583 SCIP_VAR* var /**< created variable */
584 );
585#endif
586
587/** sets the creation time of this var */
590 SCIP_VAR* var, /**< created variable */
591 SCIP_Real time /**< creation time */
592 );
593
594#ifdef NDEBUG
595#define GCGgetCreationTime(var) (SCIPvarGetData(var)->creationtime)
596#else
597/** returns the creation time of this var */
600 SCIP_VAR* var /**< created variable */
601 );
602#endif
603
604/** store pricing reduced cost call */
607 SCIP_VAR* var, /**< variable data structure */
608 SCIP_Longint rootredcostcall /**< iteration at which the variable is created */
609 );
610
611#ifdef NDEBUG
612#define GCGgetRootRedcostCall(var) (SCIPvarGetData(var)->rootredcostcall)
613#else
614/** return stored pricing reduced cost call */
617 SCIP_VAR* var /**< variable data structure */
618 );
619#endif
620
621#ifdef NDEBUG
622#define GCGgetIteration(var) (SCIPvarGetData(var)->iteration)
623#else
624/** returns the iteration when the var was created */
627 SCIP_VAR* var /**< created variable */
628 );
629#endif
630
631/** sets the iteration when the var was created */
633void GCGsetIteration(
634 SCIP_VAR* var, /**< created variable */
635 SCIP_Longint iteration /**< iteration that this var was created */
636 );
637
638/** store gap */
640void GCGsetVarGap(
641 SCIP_VAR* var, /**< variable data structure */
642 SCIP_Real gap /**< present gap when variable is created */
643 );
644
645#ifdef NDEBUG
646#define GCGgetVarGap(var) (SCIPvarGetData(var)->gap)
647#else
648/** return stored gap */
651 SCIP_VAR* var /**< variable data structure */
652 );
653#endif
654
655/** store reduced cost */
657void GCGsetRedcost(
658 GCG* gcg, /**< GCG data structure */
659 SCIP_VAR* var, /**< variable data structure */
660 SCIP_Real redcost /**< reduced cost of the variable at creation */
661 );
662
663#ifdef NDEBUG
664#define GCGgetRedcost(var) (SCIPvarGetData(var)->redcost)
665#else
666/** return stored reduced cost */
669 SCIP_VAR* var /**< variable data structure */
670 );
671#endif
672
673/** updates the statistics part of the variable */
676 GCG* gcg, /**< GCG data structure */
677 SCIP_VAR* newvar, /**< new variable for statistic update */
678 SCIP_Real redcost /**< reduced cost of the variable */
679 );
680
681/** prints the given variable: name, type (original, master or pricing) block number,
682 * and the list of all variables related to the given variable */
684void GCGprintVar(
685 GCG* gcg, /**< GCG data structure */
686 FILE* file, /**< File to write information to, or NULL for stdout */
687 SCIP_VAR* var /**< variable that should be printed */
688 );
689
690#ifdef NDEBUG
691#define GCGmasterVarGetIndex(var) (SCIPvarGetData(var)->data.mastervardata.index)
692#else
693/** returns the index of the mater variable */
696 SCIP_VAR* var /**< SCIP variable structure */
697 );
698#endif
699
700/** sets the index of the master variable */
703 SCIP_VAR* var, /**< SCIP variable structure */
704 int index /**< index */
705 );
706
707#ifdef NDEBUG
708#define GCGinferredPricingVarGetExtendedmasterconsdata(var) (SCIPvarGetData(var)->data.inferredpricingvardata.extendedmasterconsdata)
709#else
710/* returns the extended master cons data of the inferred pricing var */
713 SCIP_VAR* var /**< SCIP variable structure */
714 );
715#endif
716
717#ifdef NDEBUG
718#define GCGinferredPricingVarIsCoefVar(var) (SCIPvarGetData(var)->data.inferredpricingvardata.iscoefvar)
719#else
720/* returns whether the inferred pricing variable is a coefficient variable */
723 SCIP_VAR* var /**< SCIP variable structure */
724 );
725#endif
726
727#ifdef __cplusplus
728}
729
730
731#endif
732/** @} */
733#endif
#define GCG_EXPORT
Definition: def.h:59
#define SCIP_Longint
#define SCIP_Bool
#define SCIP_Real
GCG_EXPORT SCIP_Bool GCGisLinkingVarInBlock(SCIP_VAR *var, int block)
Definition: gcgvar.c:1149
GCG_EXPORT SCIP_RETCODE GCGlinkingVarCreatePricingVar(SCIP *pricingscip, int pricingprobnr, SCIP_VAR *origvar, SCIP_VAR **var)
Definition: gcgvar.c:1339
GCG_EXPORT SCIP_RETCODE GCGpricingVarAddOrigVar(SCIP *pricingprob, SCIP_VAR *pricingvar, SCIP_VAR *origvar)
Definition: gcgvar.c:610
GCG_EXPORT void GCGsetCreationTime(SCIP_VAR *var, SCIP_Real time)
Definition: gcgvar.c:1777
SCIP_RETCODE GCGcreateInferredPricingVar(SCIP *pricingscip, SCIP_VAR **newvar, const char *varname, SCIP_Real lb, SCIP_Real ub, SCIP_Bool iscoefvar, SCIP_Real objcoeff, SCIP_VARTYPE vartype, int prob)
Definition: gcgvar.c:1674
GCG_EXPORT SCIP_Bool GCGoriginalVarIsLinking(SCIP_VAR *var)
Definition: gcgvar.c:247
GCG_EXPORT SCIP_Bool GCGvarIsOriginal(SCIP_VAR *var)
Definition: gcgvar.c:231
GCG_EXPORT SCIP_Real GCGgetRedcost(SCIP_VAR *var)
Definition: gcgvar.c:1906
GCG_EXPORT void GCGoriginalVarSetPricingVar(SCIP_VAR *var, SCIP_VAR *pricingvar)
Definition: gcgvar.c:300
GCG_EXPORT int GCGpricingVarGetNOrigvars(SCIP_VAR *var)
Definition: gcgvar.c:1082
GCG_EXPORT SCIP_Bool GCGisMasterVarInBlock(SCIP_VAR *mastervar, int blocknr)
Definition: gcgvar.c:1169
GCG_EXPORT SCIP_VAR * GCGoriginalVarGetPricingVar(SCIP_VAR *var)
Definition: gcgvar.c:281
GCG_EXPORT SCIP_CONS ** GCGlinkingVarGetLinkingConss(SCIP_VAR *var)
Definition: gcgvar.c:872
GCG_EXPORT SCIP_Bool GCGmasterVarIsRay(SCIP_VAR *var)
Definition: gcgvar.c:937
GCG_EXPORT void GCGlinkingVarSetPricingVar(SCIP_VAR *origvar, int pricingprobnr, SCIP_VAR *var)
Definition: gcgvar.c:506
GCG_EXPORT SCIP_Bool GCGvarIsPricing(SCIP_VAR *var)
Definition: gcgvar.c:159
GCG_EXPORT SCIP_RETCODE GCGfreeOrigVarsData(GCG *gcg)
Definition: gcgvar.c:346
GCG_EXPORT void GCGsetRootRedcostCall(SCIP_VAR *var, SCIP_Longint rootredcostcall)
Definition: gcgvar.c:1805
GCG_EXPORT SCIP_CONS ** GCGoriginalVarGetMasterconss(SCIP_VAR *var)
Definition: gcgvar.c:792
GCG_EXPORT SCIP_Real * GCGoriginalVarGetCoefs(SCIP_VAR *var)
Definition: gcgvar.c:702
GCG_EXPORT int GCGvarGetBlock(SCIP_VAR *var)
Definition: gcgvar.c:1118
GCG_EXPORT SCIP_RETCODE GCGcopyPricingvarDataToMastervar(GCG *gcg, SCIP_VAR *pricingvar, SCIP_VAR *mastervar)
Definition: gcgvar.c:443
GCG_EXPORT void GCGvarSetBlock(SCIP_VAR *var, int block)
Definition: gcgvar.c:1133
GCG_EXPORT SCIP_Bool GCGvarIsMaster(SCIP_VAR *var)
Definition: gcgvar.c:176
GCG_EXPORT SCIP_Bool GCGinferredPricingVarIsCoefVar(SCIP_VAR *var)
Definition: gcgvar.c:2085
GCG_EXPORT SCIP_VAR ** GCGmasterVarGetOrigvars(SCIP_VAR *var)
Definition: gcgvar.c:993
GCG_EXPORT void GCGmasterVarSetIndex(SCIP_VAR *var, int index)
Definition: gcgvar.c:2056
GCG_EXPORT void GCGprintVar(GCG *gcg, FILE *file, SCIP_VAR *var)
Definition: gcgvar.c:1952
GCG_EXPORT SCIP * GCGmasterVarGetProb(SCIP_VAR *var)
GCG_EXPORT SCIP_VAR ** GCGlinkingVarGetPricingVars(SCIP_VAR *var)
Definition: gcgvar.c:488
GCG_EXPORT SCIP_RETCODE GCGcreateInitialMasterVar(GCG *gcg, SCIP_VAR *var, SCIP_VAR **newvar)
Definition: gcgvar.c:1586
GCG_EXPORT SCIP_RETCODE GCGoriginalVarCreatePricingVar(SCIP *pricingprob, SCIP_VAR *origvar, SCIP_VAR **var)
Definition: gcgvar.c:1302
GCG_EXPORT SCIP_RETCODE GCGcreateMasterVar(GCG *gcg, SCIP *pricingscip, SCIP_VAR **newvar, const char *varname, SCIP_Real objcoeff, SCIP_VARTYPE vartype, SCIP_Bool solisray, int prob, int nsolvars, SCIP_Real *solvals, SCIP_VAR **solvars, SCIP_Bool auxiliaryvar)
Definition: gcgvar.c:1398
GCG_EXPORT SCIP_RETCODE GCGaddDataAuxiliaryVar(GCG *gcg, SCIP_VAR *auxiliaryvar, int probnumber)
Definition: gcgvar.c:1709
GCG_EXPORT SCIP_VAR ** GCGoriginalVarGetMastervars(SCIP_VAR *var)
Definition: gcgvar.c:666
GCG_EXPORT void GCGsetCreationNode(SCIP_VAR *var, SCIP_Longint creationNode)
Definition: gcgvar.c:1749
GCG_EXPORT SCIP_Bool GCGmasterVarIsArtificial(SCIP_VAR *var)
Definition: gcgvar.c:954
GCG_EXPORT void GCGupdateVarStatistics(GCG *gcg, SCIP_VAR *newvar, SCIP_Real redcost)
Definition: gcgvar.c:1919
GCG_EXPORT SCIP_Bool GCGmasterVarIsLinking(SCIP_VAR *var)
Definition: gcgvar.c:913
GCG_EXPORT int GCGoriginalVarGetNMastervars(SCIP_VAR *var)
Definition: gcgvar.c:648
GCG_EXPORT SCIP_RETCODE GCGoriginalVarAddMasterVar(GCG *gcg, SCIP_VAR *origvar, SCIP_VAR *var, SCIP_Real val)
Definition: gcgvar.c:1206
GCG_EXPORT int GCGoriginalVarGetNCoefs(SCIP_VAR *var)
Definition: gcgvar.c:720
GCG_EXPORT void GCGsetIteration(SCIP_VAR *var, SCIP_Longint iteration)
Definition: gcgvar.c:1833
GCG_EXPORT void GCGsetRedcost(GCG *gcg, SCIP_VAR *var, SCIP_Real redcost)
Definition: gcgvar.c:1889
GCG_EXPORT int GCGlinkingVarGetNBlocks(SCIP_VAR *var)
Definition: gcgvar.c:572
GCG_EXPORT SCIP_Real GCGgetCreationTime(SCIP_VAR *var)
Definition: gcgvar.c:1792
int GCGcountInferredCoefPricingVars(SCIP_VAR **vars, int nvars)
Definition: gcgvar.c:210
GCG_EXPORT GCG_EXTENDEDMASTERCONSDATA * GCGinferredPricingVarGetExtendedmasterconsdata(SCIP_VAR *var)
Definition: gcgvar.c:2070
GCG_EXPORT SCIP_RETCODE GCGcreateArtificialVar(GCG *gcg, SCIP_VAR **newvar, const char *name, SCIP_Real objcoef)
Definition: gcgvar.c:1638
GCG_EXPORT SCIP_RETCODE GCGcreateOrigVarsData(GCG *gcg)
Definition: gcgvar.c:320
GCG_EXPORT SCIP_RETCODE GCGoriginalVarAddCoef(GCG *gcg, SCIP_VAR *var, SCIP_Real val, SCIP_CONS *cons)
Definition: gcgvar.c:758
GCG_EXPORT SCIP_HASHMAP * GCGmasterVarGetOrigvalmap(SCIP_VAR *var)
Definition: gcgvar.c:1064
GCG_EXPORT SCIP_RETCODE GCGorigVarCreateData(GCG *gcg, SCIP_VAR *var)
Definition: gcgvar.c:382
GCG_EXPORT SCIP_Longint GCGgetIteration(SCIP_VAR *var)
Definition: gcgvar.c:1848
GCG_EXPORT long long int GCGgetCreationNode(SCIP_VAR *var)
Definition: gcgvar.c:1764
GCG_EXPORT SCIP_Bool GCGoriginalVarIsTransVar(SCIP_VAR *var)
Definition: gcgvar.c:264
GCG_EXPORT SCIP_RETCODE GCGlinkingVarGetBlocks(SCIP_VAR *var, int nblocks, int *blocks)
Definition: gcgvar.c:529
GCG_EXPORT int GCGmasterVarGetNOrigvars(SCIP_VAR *var)
Definition: gcgvar.c:971
GCG_EXPORT SCIP_RETCODE GCGlinkingVarCreateMasterCons(GCG *gcg, int pricingprobnr, SCIP_VAR *origvar, SCIP_CONS **linkcons)
Definition: gcgvar.c:1374
GCG_EXPORT void GCGoriginalVarSetNCoefs(SCIP_VAR *var, int coef)
Definition: gcgvar.c:737
GCG_EXPORT void GCGsetVarGap(SCIP_VAR *var, SCIP_Real gap)
Definition: gcgvar.c:1861
GCG_EXPORT SCIP_Real * GCGmasterVarGetOrigvals(SCIP_VAR *var)
Definition: gcgvar.c:1017
GCG_EXPORT SCIP_Bool GCGvarIsInferredPricing(SCIP_VAR *var)
Definition: gcgvar.c:195
GCG_EXPORT void GCGlinkingVarSetLinkingCons(SCIP_VAR *var, SCIP_CONS *cons, int index)
Definition: gcgvar.c:891
GCG_EXPORT SCIP_RETCODE GCGoriginalVarAddBlock(GCG *gcg, SCIP_VAR *var, int newblock, int nblocks, GCG_DECMODE mode)
Definition: gcgvar.c:808
GCG_EXPORT SCIP_Real GCGmasterVarGetOrigval(SCIP_VAR *mastervar, SCIP_VAR *origvar)
Definition: gcgvar.c:1034
GCG_EXPORT SCIP_Real GCGgetVarGap(SCIP_VAR *var)
Definition: gcgvar.c:1876
GCG_EXPORT SCIP_VAR ** GCGpricingVarGetOrigvars(SCIP_VAR *var)
Definition: gcgvar.c:1100
GCG_EXPORT SCIP_Real * GCGoriginalVarGetMastervals(SCIP_VAR *var)
Definition: gcgvar.c:684
GCG_EXPORT SCIP_Longint GCGgetRootRedcostCall(SCIP_VAR *var)
Definition: gcgvar.c:1820
GCG_EXPORT SCIP_RETCODE GCGoriginalVarRemoveMasterVar(GCG *gcg, SCIP_VAR *origvar, SCIP_VAR *var)
Definition: gcgvar.c:1257
GCG_EXPORT int GCGmasterVarGetIndex(SCIP_VAR *var)
Definition: gcgvar.c:2043
GCG_EXPORT SCIP_VAR * GCGpricingVarGetOriginalVar(SCIP_VAR *var)
Definition: gcgvar.c:590
Definition: struct_gcg.h:55
data structures for GCG variable data
type definitions for decomposition information in GCG projects
enum Decmode GCG_DECMODE
Definition: type_decomp.h:69
enum SCIP_Retcode SCIP_RETCODE
enum SCIP_Vartype SCIP_VARTYPE