Scippy

GCG

Branch-and-Price & Column Generation for Everyone

branch_bpstrong.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 branch_bpstrong.h
30 * @brief generic branch and price strong branching as described in
31 * Pecin, D., Pessoa, A., Poggi, M., Uchoa, E. Improved branch-cut-and-price for capacitated vehicle routing.
32 * In: Math. Prog. Comp. 9:61-100. Springer (2017).
33 * @ingroup BRANCHINGRULES-GCG
34 * @author Oliver Gaul
35 */
36
37/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
38
39#ifndef GCG_BRANCH_BPSTRONG_H__
40#define GCG_BRANCH_BPSTRONG_H__
41
42#include "scip/scip.h"
43#include "gcg/gcg.h"
44#include "gcg/type_branchgcg.h"
45
46#ifdef __cplusplus
47extern "C"
48{
49#endif
50
51/** creates the xyz branching rule and includes it in SCIP */
54 GCG* gcg /**< SCIP data structure */
55 );
56
58 GCG* gcg, /**< GCG data structure */
59 GCG_BRANCHRULE* origbranchrule, /**< pointer storing original branching rule */
60 SCIP_VAR** branchvar, /**< pointer to store output var pointer */
61 SCIP_Bool* upinf, /**< pointer to store whether strong branching detected infeasibility in
62 * the upbranch */
63 SCIP_Bool* downinf, /**< pointer to store whether strong branching detected infeasibility in
64 * the downbranch */
65 SCIP_RESULT* result, /**< pointer to store result */
66 SCIP_Bool* stillusestrong /**< pointer to store whether strong branching has reached a permanent
67 * stopping condition for orig */
68 );
69
71 GCG* gcg, /**< GCG data structure */
72 GCG_BRANCHRULE* rfbranchrule, /**< Ryan-Foster branchrule */
73 SCIP_VAR** ovar1s, /**< first elements of candidate pairs */
74 SCIP_VAR** ovar2s, /**< second elements of candidate pairs */
75 int* nspricingblock, /**< pricing block numbers corresponding to input pairs */
76 int npairs, /**< number of input pairs */
77 SCIP_VAR** ovar1, /**< pointer to store output var 1 pointer */
78 SCIP_VAR** ovar2, /**< pointer to store output var 2 pointer */
79 int* pricingblock, /**< pointer to store output pricing block number */
80 SCIP_Bool* sameinf, /**< pointer to store whether strong branching detected infeasibility in
81 * the same branch */
82 SCIP_Bool* differinf, /**< pointer to store whether strong branching detected infeasibility in
83 * the differ branch */
84 SCIP_RESULT* result, /**< pointer to store result */
85 SCIP_Bool* stillusestrong /**< pointer to store whether strong branching has reached a permanent
86 * stopping condition for Ryan-Foster */
87 );
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif
SCIP_RETCODE GCGbranchSelectCandidateStrongBranchingRyanfoster(GCG *gcg, GCG_BRANCHRULE *rfbranchrule, SCIP_VAR **ovar1s, SCIP_VAR **ovar2s, int *nspricingblock, int npairs, SCIP_VAR **ovar1, SCIP_VAR **ovar2, int *pricingblock, SCIP_Bool *sameinf, SCIP_Bool *differinf, SCIP_RESULT *result, SCIP_Bool *stillusestrong)
SCIP_RETCODE GCGbranchSelectCandidateStrongBranchingOrig(GCG *gcg, GCG_BRANCHRULE *origbranchrule, SCIP_VAR **branchvar, SCIP_Bool *upinf, SCIP_Bool *downinf, SCIP_RESULT *result, SCIP_Bool *stillusestrong)
GCG_EXPORT SCIP_RETCODE GCGincludeBranchruleBPStrong(GCG *gcg)
#define GCG_EXPORT
Definition: def.h:59
GCG interface methods.
Definition: struct_gcg.h:55
type definitions for branching rules in GCG projects
enum SCIP_Result SCIP_RESULT
enum SCIP_Retcode SCIP_RETCODE