Scippy

    SCIP

    Solving Constraint Integer Programs

    benders.h
    Go to the documentation of this file.
    1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    2/* */
    3/* This file is part of the program and library */
    4/* SCIP --- Solving Constraint Integer Programs */
    5/* */
    6/* Copyright (c) 2002-2025 Zuse Institute Berlin (ZIB) */
    7/* */
    8/* Licensed under the Apache License, Version 2.0 (the "License"); */
    9/* you may not use this file except in compliance with the License. */
    10/* You may obtain a copy of the License at */
    11/* */
    12/* http://www.apache.org/licenses/LICENSE-2.0 */
    13/* */
    14/* Unless required by applicable law or agreed to in writing, software */
    15/* distributed under the License is distributed on an "AS IS" BASIS, */
    16/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
    17/* See the License for the specific language governing permissions and */
    18/* limitations under the License. */
    19/* */
    20/* You should have received a copy of the Apache-2.0 license */
    21/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
    22/* */
    23/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    24
    25/**@file benders.h
    26 * @ingroup INTERNALAPI
    27 * @brief internal methods for Benders' decomposition
    28 * @author Stephen J. Maher
    29 */
    30
    31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    32
    33#ifndef __SCIP_BENDERS_H__
    34#define __SCIP_BENDERS_H__
    35
    37#include "scip/def.h"
    38#include "scip/type_benders.h"
    40#include "scip/type_dcmp.h"
    41#include "scip/type_message.h"
    42#include "scip/type_misc.h"
    43#include "scip/type_result.h"
    44#include "scip/type_retcode.h"
    45#include "scip/type_scip.h"
    46#include "scip/type_set.h"
    47#include "scip/type_sol.h"
    48#include "scip/type_stat.h"
    49#include "scip/type_var.h"
    50
    51#ifdef __cplusplus
    52extern "C" {
    53#endif
    54
    55
    56/** copies the given Benders' decomposition to a new scip */
    58 SCIP_BENDERS* benders, /**< Benders' decomposition */
    59 SCIP_SET* sourceset, /**< SCIP_SET of SCIP to copy from */
    60 SCIP_SET* targetset, /**< SCIP_SET of SCIP to copy to */
    61 SCIP_HASHMAP* varmap, /**< a hashmap to store the mapping of source variables corresponding
    62 * target variables; must not be NULL */
    63 SCIP_Bool threadsafe, /**< must the Benders' decomposition copy be thread safe */
    64 SCIP_Bool* valid /**< was the copying process valid? */
    65 );
    66
    67/** creates a Benders' decomposition */
    69 SCIP_BENDERS** benders, /**< pointer to Benders' decomposition data structure */
    70 SCIP_SET* set, /**< global SCIP settings */
    71 SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
    72 BMS_BLKMEM* blkmem, /**< block memory for parameter settings */
    73 const char* name, /**< name of Benders' decomposition */
    74 const char* desc, /**< description of Benders' decomposition */
    75 int priority, /**< priority of the Benders' decomposition */
    76 SCIP_Bool cutlp, /**< should Benders' cuts be generated for LP solutions */
    77 SCIP_Bool cutpseudo, /**< should Benders' cuts be generated for pseudo solutions */
    78 SCIP_Bool cutrelax, /**< should Benders' cuts be generated for relaxation solutions */
    79 SCIP_Bool shareauxvars, /**< should this Benders' use the highest priority Benders aux vars */
    80 SCIP_DECL_BENDERSCOPY ((*benderscopy)), /**< copy method of Benders' decomposition or NULL if you don't want to copy your plugin into sub-SCIPs */
    81 SCIP_DECL_BENDERSFREE ((*bendersfree)), /**< destructor of Benders' decomposition */
    82 SCIP_DECL_BENDERSINIT ((*bendersinit)), /**< initialize Benders' decomposition */
    83 SCIP_DECL_BENDERSEXIT ((*bendersexit)), /**< deinitialize Benders' decomposition */
    84 SCIP_DECL_BENDERSINITPRE((*bendersinitpre)),/**< presolving initialization method for Benders' decomposition */
    85 SCIP_DECL_BENDERSEXITPRE((*bendersexitpre)),/**< presolving deinitialization method for Benders' decomposition */
    86 SCIP_DECL_BENDERSINITSOL((*bendersinitsol)),/**< solving process initialization method of Benders' decomposition */
    87 SCIP_DECL_BENDERSEXITSOL((*bendersexitsol)),/**< solving process deinitialization method of Benders' decomposition */
    88 SCIP_DECL_BENDERSGETVAR((*bendersgetvar)),/**< returns the master variable for a given subproblem variable */
    89 SCIP_DECL_BENDERSCREATESUB((*benderscreatesub)),/**< creates a Benders' decomposition subproblem */
    90 SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve)),/**< called prior to the subproblem solving loop */
    91 SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex)),/**< the solving method for convex Benders' decomposition subproblems */
    92 SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub)),/**< the solving method for the Benders' decomposition subproblems */
    93 SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve)),/**< called after the subproblems are solved. */
    94 SCIP_DECL_BENDERSFREESUB((*bendersfreesub)),/**< the freeing method for the Benders' decomposition subproblems */
    95 SCIP_BENDERSDATA* bendersdata /**< Benders' decomposition data */
    96 );
    97
    98/** calls destructor and frees memory of Benders' decomposition */
    100 SCIP_BENDERS** benders, /**< pointer to Benders' decomposition data structure */
    101 SCIP_SET* set /**< global SCIP settings */
    102 );
    103
    104/** initializes Benders' decomposition */
    106 SCIP_BENDERS* benders, /**< Benders' decomposition */
    107 SCIP_SET* set /**< global SCIP settings */
    108 );
    109
    110/** calls exit method of Benders' decomposition */
    112 SCIP_BENDERS* benders, /**< Benders' decomposition */
    113 SCIP_SET* set /**< global SCIP settings */
    114 );
    115
    116/** informs the Benders' decomposition that the presolving process is being started */
    118 SCIP_BENDERS* benders, /**< Benders' decomposition */
    119 SCIP_SET* set, /**< global SCIP settings */
    120 SCIP_STAT* stat /**< dynamic problem statistics */
    121 );
    122
    123/** informs the Benders' decomposition that the presolving process has completed */
    125 SCIP_BENDERS* benders, /**< Benders' decomposition */
    126 SCIP_SET* set, /**< global SCIP settings */
    127 SCIP_STAT* stat /**< dynamic problem statistics */
    128 );
    129
    130/** informs Benders' decomposition that the branch and bound process is being started */
    132 SCIP_BENDERS* benders, /**< Benders' decomposition */
    133 SCIP_SET* set /**< global SCIP settings */
    134 );
    135
    136/** informs Benders' decomposition that the branch and bound process data is being freed */
    138 SCIP_BENDERS* benders, /**< Benders' decomposition */
    139 SCIP_SET* set /**< global SCIP settings */
    140 );
    141
    142/** activates Benders' decomposition such that it is called in LP solving loop */
    144 SCIP_BENDERS* benders, /**< the Benders' decomposition structure */
    145 SCIP_SET* set, /**< global SCIP settings */
    146 int nsubproblems /**< the number subproblems used in this decomposition */
    147 );
    148
    149/** deactivates Benders' decomposition such that it is no longer called in LP solving loop */
    151 SCIP_BENDERS* benders, /**< the Benders' decomposition structure */
    152 SCIP_SET* set /**< global SCIP settings */
    153 );
    154
    155/** enables or disables all clocks of Benders' decomposition depending on the value of the flag */
    157 SCIP_BENDERS* benders, /**< the Benders' decomposition for which all clocks should be enabled or disabled */
    158 SCIP_Bool enable /**< should the clocks of the Benders' decomposition be enabled? */
    159 );
    160
    161/** solves the subproblem using the current master problem solution.
    162 *
    163 * The checkint flag indicates whether integer feasibility can be assumed. If it is not assumed, i.e. checkint ==
    164 * FALSE, then only the convex relaxations of the subproblems are solved. If integer feasibility is assumed, i.e.
    165 * checkint == TRUE, then the convex relaxations and the full CIP are solved to generate Benders' cuts and check
    166 * solution feasibility.
    167 */
    169 SCIP_BENDERS* benders, /**< Benders' decomposition */
    170 SCIP_SET* set, /**< global SCIP settings */
    171 SCIP_SOL* sol, /**< primal CIP solution */
    172 SCIP_RESULT* result, /**< result of the pricing process */
    173 SCIP_Bool* infeasible, /**< is the master problem infeasible with respect to the Benders' cuts? */
    174 SCIP_Bool* auxviol, /**< set to TRUE only if the solution is feasible but the aux vars are violated */
    175 SCIP_BENDERSENFOTYPE type, /**< the type of solution being enforced */
    176 SCIP_Bool checkint /**< should the integer solution be checked by the subproblems */
    177 );
    178
    179/** Executes the subproblem solving process. */
    181 SCIP_BENDERS* benders, /**< Benders' decomposition */
    182 SCIP_SET* set, /**< global SCIP settings */
    183 SCIP_SOL* sol, /**< primal CIP solution */
    184 int probnumber, /**< the subproblem number */
    185 SCIP_BENDERSSOLVELOOP solveloop, /**< the solve loop iteration. The first iter is for LP, the second for IP */
    186 SCIP_Bool enhancement, /**< is the solve performed as part of an enhancement? */
    187 SCIP_Bool* solved, /**< flag to indicate whether the subproblem was solved */
    188 SCIP_Bool* infeasible, /**< returns whether the current subproblem is infeasible */
    189 SCIP_BENDERSENFOTYPE type /**< the enforcement type calling this function */
    190 );
    191
    192/** sets up the subproblem using the solution to the master problem */
    194 SCIP_BENDERS* benders, /**< Benders' decomposition */
    195 SCIP_SET* set, /**< global SCIP settings */
    196 SCIP_SOL* sol, /**< primal CIP solution */
    197 int probnumber, /**< the subproblem number */
    198 SCIP_BENDERSENFOTYPE type /**< the enforcement type calling this function */
    199 );
    200
    201/** Solve a Benders' decomposition subproblems. This will either call the user defined method or the generic solving
    202 * methods. If the generic method is called, then the subproblem must be set up before calling this method. */
    204 SCIP_BENDERS* benders, /**< Benders' decomposition */
    205 SCIP_SET* set, /**< global SCIP settings */
    206 SCIP_SOL* sol, /**< primal CIP solution, can be NULL */
    207 int probnumber, /**< the subproblem number */
    208 SCIP_Bool* infeasible, /**< returns whether the current subproblem is infeasible */
    209 SCIP_Bool solvecip, /**< directly solve the CIP subproblem */
    210 SCIP_Real* objective /**< the objective function value of the subproblem, can be NULL */
    211 );
    212
    213/** frees the subproblems */
    215 SCIP_BENDERS* benders, /**< Benders' decomposition */
    216 SCIP_SET* set, /**< global SCIP settings */
    217 int probnumber /**< the subproblem number */
    218 );
    219
    220/** compares the subproblem objective value with the auxiliary variable value for optimality */
    222 SCIP_BENDERS* benders, /**< the benders' decomposition structure */
    223 SCIP_SET* set, /**< global SCIP settings */
    224 SCIP_SOL* sol, /**< primal CIP solution */
    225 int probnumber /**< the subproblem number */
    226 );
    227
    228/** returns the value of the auxiliary variable value in a master problem solution */
    230 SCIP_BENDERS* benders, /**< the benders' decomposition structure */
    231 SCIP_SET* set, /**< global SCIP settings */
    232 SCIP_SOL* sol, /**< primal CIP solution */
    233 int probnumber /**< the subproblem number */
    234 );
    235
    236/** Solves an independent subproblem to identify its lower bound. The lower bound is then used to update the bound on
    237 * the auxiliary variable.
    238 */
    240 SCIP_BENDERS* benders, /**< Benders' decomposition */
    241 SCIP_SET* set, /**< global SCIP settings */
    242 int probnumber, /**< the subproblem to be evaluated */
    243 SCIP_Real* lowerbound, /**< the lowerbound for the subproblem */
    244 SCIP_Bool* infeasible /**< was the subproblem found to be infeasible? */
    245 );
    246
    247/** merges a subproblem into the master problem. This process just adds a copy of the subproblem variables and
    248 * constraints to the master problem, but keeps the subproblem stored in the Benders' decomposition data structure.
    249 * The reason for keeping the subproblem available is for when it is queried for solutions after the problem is solved.
    250 *
    251 * Once the subproblem is merged into the master problem, then the subproblem is flagged as disabled. This means that
    252 * it will not be solved in the subsequent subproblem solving loops.
    253 *
    254 * The associated auxiliary variables are kept in the master problem. The objective function of the merged subproblem
    255 * is added as an underestimator constraint.
    256 */
    258 SCIP_BENDERS* benders, /**< Benders' decomposition */
    259 SCIP_SET* set, /**< global SCIP settings */
    260 SCIP_HASHMAP* varmap, /**< a hashmap to store the mapping of subproblem variables corresponding
    261 * to the newly created master variables, or NULL */
    262 SCIP_HASHMAP* consmap, /**< a hashmap to store the mapping of subproblem constraints to the
    263 corresponding newly created constraints, or NULL */
    264 int probnumber /**< the number of the subproblem that will be merged into the master problem*/
    265 );
    266
    267/** sets priority of Benders' decomposition */
    269 SCIP_BENDERS* benders, /**< Benders' decomposition */
    270 SCIP_SET* set, /**< global SCIP settings */
    271 int priority /**< new priority of the Benders' decomposition */
    272 );
    273
    274/** sets copy callback of Benders' decomposition */
    276 SCIP_BENDERS* benders, /**< Benders' decomposition */
    277 SCIP_DECL_BENDERSCOPY ((*benderscopy)) /**< copy callback of Benders' decomposition */
    278 );
    279
    280/** sets destructor callback of Benders' decomposition */
    282 SCIP_BENDERS* benders, /**< Benders' decomposition */
    283 SCIP_DECL_BENDERSFREE ((*bendersfree)) /**< destructor of Benders' decomposition */
    284 );
    285
    286/** sets initialization callback of Benders' decomposition */
    288 SCIP_BENDERS* benders, /**< Benders' decomposition */
    289 SCIP_DECL_BENDERSINIT((*bendersinit)) /**< initialize Benders' decomposition */
    290 );
    291
    292/** sets deinitialization callback of Benders' decomposition */
    294 SCIP_BENDERS* benders, /**< Benders' decomposition */
    295 SCIP_DECL_BENDERSEXIT((*bendersexit)) /**< deinitialize Benders' decomposition */
    296 );
    297
    298/** sets presolving initialization callback of Benders' decomposition */
    300 SCIP_BENDERS* benders, /**< Benders' decomposition */
    301 SCIP_DECL_BENDERSINITPRE((*bendersinitpre))/**< initialize presolving for Benders' decomposition */
    302 );
    303
    304/** sets presolving deinitialization callback of Benders' decomposition */
    306 SCIP_BENDERS* benders, /**< Benders' decomposition */
    307 SCIP_DECL_BENDERSEXITPRE((*bendersexitpre))/**< deinitialize presolving for Benders' decomposition */
    308 );
    309
    310/** sets solving process initialization callback of Benders' decomposition */
    312 SCIP_BENDERS* benders, /**< Benders' decomposition */
    313 SCIP_DECL_BENDERSINITSOL((*bendersinitsol))/**< solving process initialization callback of Benders' decomposition */
    314 );
    315
    316/** sets solving process deinitialization callback of Benders' decomposition */
    318 SCIP_BENDERS* benders, /**< Benders' decomposition */
    319 SCIP_DECL_BENDERSEXITSOL((*bendersexitsol))/**< solving process deinitialization callback of Benders' decomposition */
    320 );
    321
    322/** sets the pre subproblem solve callback of Benders' decomposition */
    324 SCIP_BENDERS* benders, /**< Benders' decomposition */
    325 SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve))/**< called prior to the subproblem solving loop */
    326 );
    327
    328/** sets convex solve callback of Benders' decomposition */
    330 SCIP_BENDERS* benders, /**< Benders' decomposition */
    331 SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex))/**< solving method for the convex Benders' decomposition subproblem */
    332 );
    333
    334/** sets solve callback of Benders' decomposition */
    336 SCIP_BENDERS* benders, /**< Benders' decomposition */
    337 SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub))/**< solving method for a Benders' decomposition subproblem */
    338 );
    339
    340/** sets post-solve callback of Benders' decomposition */
    342 SCIP_BENDERS* benders, /**< Benders' decomposition */
    343 SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve))/**< solving process deinitialization callback of Benders' decomposition */
    344 );
    345
    346/** sets post-solve callback of Benders' decomposition */
    348 SCIP_BENDERS* benders, /**< Benders' decomposition */
    349 SCIP_DECL_SORTPTRCOMP((*benderssubcomp)) /**< a comparator for defining the solving order of the subproblems */
    350 );
    351
    352/** sets free subproblem callback of Benders' decomposition */
    354 SCIP_BENDERS* benders, /**< Benders' decomposition */
    355 SCIP_DECL_BENDERSFREESUB((*bendersfreesub))/**< the freeing callback for the subproblem */
    356 );
    357
    358/** Returns the corresponding master or subproblem variable for the given variable.
    359 * This provides a call back for the variable mapping between the master and subproblems. */
    361 SCIP_BENDERS* benders, /**< Benders' decomposition */
    362 SCIP_SET* set, /**< global SCIP settings */
    363 SCIP_VAR* var, /**< the variable for which the corresponding variable is desired */
    364 SCIP_VAR** mappedvar, /**< the variable that is mapped to var */
    365 int probnumber /**< the problem number for the desired variable, -1 for the master problem */
    366 );
    367
    368/** adds a subproblem to the Benders' decomposition data */
    370 SCIP_BENDERS* benders, /**< Benders' decomposition */
    371 SCIP* subproblem /**< subproblem to be added to the data storage */
    372 );
    373
    374/** removes the subproblems from the Benders' decomposition data */
    376 SCIP_BENDERS* benders /**< Benders' decomposition */
    377 );
    378
    379/** Sets whether the subproblem is enabled or disabled. A subproblem is disabled if it has been merged into the master
    380 * problem.
    381 */
    383 SCIP_BENDERS* benders, /**< Benders' decomposition */
    384 int probnumber, /**< the subproblem number */
    385 SCIP_Bool enabled /**< flag to indicate whether the subproblem is enabled */
    386 );
    387
    388/** sets the flag to indicate that at least one subproblem is always infeasible
    389 * NOTE: this is without any variable fixing being performed
    390 */
    392 SCIP_BENDERS* benders, /**< Benders' decomposition */
    393 SCIP_SET* set /**< global SCIP settings */
    394 );
    395
    396/** changes all of the master problem variables in the given subproblem to continuous */
    398 SCIP_BENDERS* benders, /**< Benders' decomposition */
    399 SCIP_SET* set, /**< global SCIP settings */
    400 int probnumber /**< the subproblem number */
    401 );
    402
    403/** sets a flag to indicate whether the master variables are all set to continuous */
    405 SCIP_BENDERS* benders, /**< Benders' decomposition */
    406 int probnumber, /**< the subproblem number */
    407 SCIP_Bool arecont /**< flag to indicate whether the master problem variables are continuous */
    408 );
    409
    410/** returns whether the master variables are all set to continuous */
    412 SCIP_BENDERS* benders, /**< Benders' decomposition */
    413 int probnumber /**< the subproblem number */
    414 );
    415
    416/** sets the objective type for the aggregation of the Benders' decomposition subproblem objectives. This is either the
    417 * summation of the objective values or a minimax of the objective values (such as for a makespan objective)
    418 */
    419SCIP_EXPORT
    421 SCIP_BENDERS* benders, /**< Benders' decomposition */
    422 SCIP_BENDERSOBJTYPE objectivetype /**< the objective type */
    423 );
    424
    425/** adds the data for the generated cuts to the Benders' cut storage */
    427 SCIP_BENDERS* benders, /**< Benders' decomposition cut */
    428 SCIP_SET* set, /**< global SCIP settings */
    429 SCIP_VAR** vars, /**< the variables that have non-zero coefficients in the cut */
    430 SCIP_Real* vals, /**< the coefficients of the variables in the cut */
    431 SCIP_Real lhs, /**< the left hand side of the cut */
    432 SCIP_Real rhs, /**< the right hand side of the cut */
    433 int nvars /**< the number of variables with non-zero coefficients in the cut */
    434 );
    435
    436/** inserts a Benders' cut algorithm plugin into the Benders' cuts plugin list */
    438 SCIP_BENDERS* benders, /**< Benders' decomposition structure */
    439 SCIP_SET* set, /**< global SCIP settings */
    440 SCIP_BENDERSCUT* benderscut /**< Benders' cut */
    441 );
    442
    443/** sets the Benders' cuts sorted flags in the Benders' decomposition */
    445 SCIP_BENDERS* benders, /**< Benders' decomposition structure */
    446 SCIP_Bool sorted /**< the value to set the sorted flag to */
    447 );
    448
    449/** sorts Benders' decomposition cuts by priorities */
    451 SCIP_BENDERS* benders /**< Benders' decomposition */
    452 );
    453
    454/** sorts Benders' decomposition cuts by name */
    456 SCIP_BENDERS* benders /**< Benders' decomposition */
    457 );
    458
    459#ifdef __cplusplus
    460}
    461#endif
    462
    463#endif
    common defines and data types used in all packages of SCIP
    #define SCIP_Bool
    Definition: def.h:91
    #define SCIP_Real
    Definition: def.h:156
    memory allocation routines
    struct BMS_BlkMem BMS_BLKMEM
    Definition: memory.h:437
    SCIP_RETCODE SCIPbendersGetVar(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_VAR *var, SCIP_VAR **mappedvar, int probnumber)
    Definition: benders.c:5766
    void SCIPbendersSetSolvesubconvex(SCIP_BENDERS *benders, SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex)))
    Definition: benders.c:5912
    SCIP_Bool SCIPbendersSubproblemIsOptimal(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber)
    Definition: benders.c:5371
    void SCIPbendersSetPresubsolve(SCIP_BENDERS *benders, SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve)))
    Definition: benders.c:5901
    void SCIPbendersSetObjectiveType(SCIP_BENDERS *benders, SCIP_BENDERSOBJTYPE objectivetype)
    Definition: benders.c:6841
    SCIP_RETCODE SCIPbendersActivate(SCIP_BENDERS *benders, SCIP_SET *set, int nsubproblems)
    Definition: benders.c:2790
    SCIP_RETCODE SCIPbendersComputeSubproblemLowerbound(SCIP_BENDERS *benders, SCIP_SET *set, int probnumber, SCIP_Real *lowerbound, SCIP_Bool *infeasible)
    Definition: benders.c:5421
    void SCIPbendersRemoveSubproblems(SCIP_BENDERS *benders)
    Definition: benders.c:6191
    void SCIPbendersSetExit(SCIP_BENDERS *benders, SCIP_DECL_BENDERSEXIT((*bendersexit)))
    Definition: benders.c:5846
    SCIP_RETCODE SCIPbendersFreeSubproblem(SCIP_BENDERS *benders, SCIP_SET *set, int probnumber)
    Definition: benders.c:5321
    void SCIPbendersSetPriority(SCIP_BENDERS *benders, SCIP_SET *set, int priority)
    Definition: benders.c:5997
    SCIP_RETCODE SCIPbendersExit(SCIP_BENDERS *benders, SCIP_SET *set)
    Definition: benders.c:2451
    void SCIPbendersSetInitsol(SCIP_BENDERS *benders, SCIP_DECL_BENDERSINITSOL((*bendersinitsol)))
    Definition: benders.c:5879
    SCIP_RETCODE SCIPbendersChgMastervarsToCont(SCIP_BENDERS *benders, SCIP_SET *set, int probnumber)
    Definition: benders.c:6587
    void SCIPbendersSortBenderscuts(SCIP_BENDERS *benders)
    Definition: benders.c:7143
    SCIP_RETCODE SCIPbendersSetupSubproblem(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber, SCIP_BENDERSENFOTYPE type)
    Definition: benders.c:4641
    SCIP_RETCODE SCIPbendersSetMastervarsCont(SCIP_BENDERS *benders, int probnumber, SCIP_Bool arecont)
    Definition: benders.c:6792
    void SCIPbendersSetSolvesub(SCIP_BENDERS *benders, SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub)))
    Definition: benders.c:5923
    void SCIPbendersSetSubproblemsAreInfeasible(SCIP_BENDERS *benders, SCIP_SET *set)
    Definition: benders.c:6562
    void SCIPbendersSetExitsol(SCIP_BENDERS *benders, SCIP_DECL_BENDERSEXITSOL((*bendersexitsol)))
    Definition: benders.c:5890
    void SCIPbendersSortBenderscutsName(SCIP_BENDERS *benders)
    Definition: benders.c:7158
    SCIP_RETCODE SCIPbendersCreate(SCIP_BENDERS **benders, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, const char *name, const char *desc, int priority, SCIP_Bool cutlp, SCIP_Bool cutpseudo, SCIP_Bool cutrelax, SCIP_Bool shareauxvars, SCIP_DECL_BENDERSCOPY((*benderscopy)), SCIP_DECL_BENDERSFREE((*bendersfree)), SCIP_DECL_BENDERSINIT((*bendersinit)), SCIP_DECL_BENDERSEXIT((*bendersexit)), SCIP_DECL_BENDERSINITPRE((*bendersinitpre)), SCIP_DECL_BENDERSEXITPRE((*bendersexitpre)), SCIP_DECL_BENDERSINITSOL((*bendersinitsol)), SCIP_DECL_BENDERSEXITSOL((*bendersexitsol)), SCIP_DECL_BENDERSGETVAR((*bendersgetvar)), SCIP_DECL_BENDERSCREATESUB((*benderscreatesub)), SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve)), SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex)), SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub)), SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve)), SCIP_DECL_BENDERSFREESUB((*bendersfreesub)), SCIP_BENDERSDATA *bendersdata)
    Definition: benders.c:1341
    SCIP_RETCODE SCIPbendersCopyInclude(SCIP_BENDERS *benders, SCIP_SET *sourceset, SCIP_SET *targetset, SCIP_HASHMAP *varmap, SCIP_Bool threadsafe, SCIP_Bool *valid)
    Definition: benders.c:1058
    SCIP_RETCODE SCIPbendersMergeSubproblemIntoMaster(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, int probnumber)
    Definition: benders.c:5583
    void SCIPbendersSetBenderscutsSorted(SCIP_BENDERS *benders, SCIP_Bool sorted)
    Definition: benders.c:7042
    SCIP_RETCODE SCIPbendersFree(SCIP_BENDERS **benders, SCIP_SET *set)
    Definition: benders.c:1420
    void SCIPbendersSetSubproblemComp(SCIP_BENDERS *benders, SCIP_DECL_SORTPTRCOMP((*benderssubcomp)))
    Definition: benders.c:5945
    SCIP_RETCODE SCIPbendersInitsol(SCIP_BENDERS *benders, SCIP_SET *set)
    Definition: benders.c:2701
    SCIP_RETCODE SCIPbendersExecSubproblemSolve(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber, SCIP_BENDERSSOLVELOOP solveloop, SCIP_Bool enhancement, SCIP_Bool *solved, SCIP_Bool *infeasible, SCIP_BENDERSENFOTYPE type)
    Definition: benders.c:4472
    void SCIPbendersSetFreesub(SCIP_BENDERS *benders, SCIP_DECL_BENDERSFREESUB((*bendersfreesub)))
    Definition: benders.c:5956
    void SCIPbendersSetInit(SCIP_BENDERS *benders, SCIP_DECL_BENDERSINIT((*bendersinit)))
    Definition: benders.c:5835
    SCIP_RETCODE SCIPbendersDeactivate(SCIP_BENDERS *benders, SCIP_SET *set)
    Definition: benders.c:2890
    SCIP_RETCODE SCIPbendersStoreCut(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_VAR **vars, SCIP_Real *vals, SCIP_Real lhs, SCIP_Real rhs, int nvars)
    Definition: benders.c:6994
    void SCIPbendersSetCopy(SCIP_BENDERS *benders, SCIP_DECL_BENDERSCOPY((*benderscopy)))
    Definition: benders.c:5813
    SCIP_RETCODE SCIPbendersAddSubproblem(SCIP_BENDERS *benders, SCIP *subproblem)
    Definition: benders.c:6167
    SCIP_Real SCIPbendersGetAuxiliaryVarVal(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber)
    Definition: benders.c:5400
    SCIP_RETCODE SCIPbendersExec(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, SCIP_RESULT *result, SCIP_Bool *infeasible, SCIP_Bool *auxviol, SCIP_BENDERSENFOTYPE type, SCIP_Bool checkint)
    Definition: benders.c:3864
    SCIP_Bool SCIPbendersGetMastervarsCont(SCIP_BENDERS *benders, int probnumber)
    Definition: benders.c:6827
    void SCIPbendersSetFree(SCIP_BENDERS *benders, SCIP_DECL_BENDERSFREE((*bendersfree)))
    Definition: benders.c:5824
    SCIP_RETCODE SCIPbendersInitpre(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_STAT *stat)
    Definition: benders.c:2617
    void SCIPbendersEnableOrDisableClocks(SCIP_BENDERS *benders, SCIP_Bool enable)
    Definition: benders.c:6103
    void SCIPbendersSetExitpre(SCIP_BENDERS *benders, SCIP_DECL_BENDERSEXITPRE((*bendersexitpre)))
    Definition: benders.c:5868
    void SCIPbendersSetInitpre(SCIP_BENDERS *benders, SCIP_DECL_BENDERSINITPRE((*bendersinitpre)))
    Definition: benders.c:5857
    void SCIPbendersSetSubproblemEnabled(SCIP_BENDERS *benders, int probnumber, SCIP_Bool enabled)
    Definition: benders.c:6754
    void SCIPbendersSetPostsolve(SCIP_BENDERS *benders, SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve)))
    Definition: benders.c:5934
    SCIP_RETCODE SCIPbendersIncludeBenderscut(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_BENDERSCUT *benderscut)
    Definition: benders.c:7054
    SCIP_RETCODE SCIPbendersExitpre(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_STAT *stat)
    Definition: benders.c:2675
    SCIP_RETCODE SCIPbendersExitsol(SCIP_BENDERS *benders, SCIP_SET *set)
    Definition: benders.c:2734
    SCIP_RETCODE SCIPbendersSolveSubproblem(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber, SCIP_Bool *infeasible, SCIP_Bool solvecip, SCIP_Real *objective)
    Definition: benders.c:4801
    SCIP_RETCODE SCIPbendersInit(SCIP_BENDERS *benders, SCIP_SET *set)
    Definition: benders.c:2207
    Definition: heur_padm.c:135
    type definitions for Benders' decomposition methods
    #define SCIP_DECL_BENDERSFREESUB(x)
    Definition: type_benders.h:362
    #define SCIP_DECL_BENDERSCREATESUB(x)
    Definition: type_benders.h:206
    #define SCIP_DECL_BENDERSCOPY(x)
    Definition: type_benders.h:107
    #define SCIP_DECL_BENDERSSOLVESUB(x)
    Definition: type_benders.h:304
    enum SCIP_BendersObjectiveType SCIP_BENDERSOBJTYPE
    Definition: type_benders.h:91
    #define SCIP_DECL_BENDERSEXITPRE(x)
    Definition: type_benders.h:152
    #define SCIP_DECL_BENDERSSOLVESUBCONVEX(x)
    Definition: type_benders.h:271
    #define SCIP_DECL_BENDERSINIT(x)
    Definition: type_benders.h:124
    #define SCIP_DECL_BENDERSFREE(x)
    Definition: type_benders.h:115
    #define SCIP_DECL_BENDERSEXITSOL(x)
    Definition: type_benders.h:174
    #define SCIP_DECL_BENDERSPRESUBSOLVE(x)
    Definition: type_benders.h:230
    enum SCIP_BendersSolveLoop SCIP_BENDERSSOLVELOOP
    Definition: type_benders.h:65
    enum SCIP_BendersEnfoType SCIP_BENDERSENFOTYPE
    Definition: type_benders.h:56
    #define SCIP_DECL_BENDERSGETVAR(x)
    Definition: type_benders.h:378
    #define SCIP_DECL_BENDERSPOSTSOLVE(x)
    Definition: type_benders.h:340
    #define SCIP_DECL_BENDERSINITPRE(x)
    Definition: type_benders.h:144
    #define SCIP_DECL_BENDERSEXIT(x)
    Definition: type_benders.h:133
    #define SCIP_DECL_BENDERSINITSOL(x)
    Definition: type_benders.h:163
    struct SCIP_BendersData SCIP_BENDERSDATA
    Definition: type_benders.h:94
    type definitions for Benders' decomposition cut
    type definitions for decompositions and the decomposition store
    type definitions for message output methods
    type definitions for miscellaneous datastructures
    #define SCIP_DECL_SORTPTRCOMP(x)
    Definition: type_misc.h:189
    result codes for SCIP callback methods
    enum SCIP_Result SCIP_RESULT
    Definition: type_result.h:61
    type definitions for return codes for SCIP methods
    enum SCIP_Retcode SCIP_RETCODE
    Definition: type_retcode.h:63
    type definitions for SCIP's main datastructure
    type definitions for global SCIP settings
    type definitions for storing primal CIP solutions
    type definitions for problem statistics
    type definitions for problem variables