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-2018 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scip.zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file scip/src/scip/benders.h
17  * @ingroup INTERNALAPI
18  * @brief internal methods for Benders' decomposition
19  * @author Stephen J. Maher
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_BENDERS_H__
25 #define __SCIP_BENDERS_H__
26 
27 #include "blockmemshell/memory.h"
28 #include "scip/def.h"
29 #include "scip/type_benders.h"
30 #include "scip/type_benderscut.h"
31 #include "scip/type_message.h"
32 #include "scip/type_misc.h"
33 #include "scip/type_result.h"
34 #include "scip/type_retcode.h"
35 #include "scip/type_scip.h"
36 #include "scip/type_set.h"
37 #include "scip/type_sol.h"
38 #include "scip/type_stat.h"
39 #include "scip/type_var.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 
46 /** copies the given Benders' decomposition to a new scip */
47 extern
49  SCIP_BENDERS* benders, /**< Benders' decomposition */
50  SCIP_SET* sourceset, /**< SCIP_SET of SCIP to copy from */
51  SCIP_SET* targetset, /**< SCIP_SET of SCIP to copy to */
52  SCIP_HASHMAP* varmap, /**< a hashmap to store the mapping of source variables corresponding
53  * target variables; must not be NULL */
54  SCIP_Bool* valid /**< was the copying process valid? */
55  );
56 
57 /** creates a Benders' decomposition */
58 extern
60  SCIP_BENDERS** benders, /**< pointer to Benders' decomposition data structure */
61  SCIP_SET* set, /**< global SCIP settings */
62  SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
63  BMS_BLKMEM* blkmem, /**< block memory for parameter settings */
64  const char* name, /**< name of Benders' decomposition */
65  const char* desc, /**< description of Benders' decomposition */
66  int priority, /**< priority of the Benders' decomposition */
67  SCIP_Bool cutlp, /**< should Benders' cuts be generated for LP solutions */
68  SCIP_Bool cutpseudo, /**< should Benders' cuts be generated for pseudo solutions */
69  SCIP_Bool cutrelax, /**< should Benders' cuts be generated for relaxation solutions */
70  SCIP_Bool shareauxvars, /**< should this Benders' use the highest priority Benders aux vars */
71  SCIP_DECL_BENDERSCOPY ((*benderscopy)), /**< copy method of Benders' decomposition or NULL if you don't want to copy your plugin into sub-SCIPs */
72  SCIP_DECL_BENDERSFREE ((*bendersfree)), /**< destructor of Benders' decomposition */
73  SCIP_DECL_BENDERSINIT ((*bendersinit)), /**< initialize Benders' decomposition */
74  SCIP_DECL_BENDERSEXIT ((*bendersexit)), /**< deinitialize Benders' decomposition */
75  SCIP_DECL_BENDERSINITPRE((*bendersinitpre)),/**< presolving initialization method for Benders' decomposition */
76  SCIP_DECL_BENDERSEXITPRE((*bendersexitpre)),/**< presolving deinitialization method for Benders' decomposition */
77  SCIP_DECL_BENDERSINITSOL((*bendersinitsol)),/**< solving process initialization method of Benders' decomposition */
78  SCIP_DECL_BENDERSEXITSOL((*bendersexitsol)),/**< solving process deinitialization method of Benders' decomposition */
79  SCIP_DECL_BENDERSGETVAR((*bendersgetvar)),/**< returns the master variable for a given subproblem variable */
80  SCIP_DECL_BENDERSCREATESUB((*benderscreatesub)),/**< creates a Benders' decomposition subproblem */
81  SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve)),/**< called prior to the subproblem solving loop */
82  SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex)),/**< the solving method for convex Benders' decomposition subproblems */
83  SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub)),/**< the solving method for the Benders' decomposition subproblems */
84  SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve)),/**< called after the subproblems are solved. */
85  SCIP_DECL_BENDERSFREESUB((*bendersfreesub)),/**< the freeing method for the Benders' decomposition subproblems */
86  SCIP_BENDERSDATA* bendersdata /**< Benders' decomposition data */
87  );
88 
89 /** calls destructor and frees memory of Benders' decomposition */
90 extern
92  SCIP_BENDERS** benders, /**< pointer to Benders' decomposition data structure */
93  SCIP_SET* set /**< global SCIP settings */
94  );
95 
96 /** initializes Benders' decomposition */
97 extern
99  SCIP_BENDERS* benders, /**< Benders' decomposition */
100  SCIP_SET* set /**< global SCIP settings */
101  );
102 
103 /** calls exit method of Benders' decomposition */
104 extern
106  SCIP_BENDERS* benders, /**< Benders' decomposition */
107  SCIP_SET* set /**< global SCIP settings */
108  );
109 
110 /** informs the Benders' decomposition that the presolving process is being started */
111 extern
113  SCIP_BENDERS* benders, /**< Benders' decomposition */
114  SCIP_SET* set, /**< global SCIP settings */
115  SCIP_STAT* stat /**< dynamic problem statistics */
116  );
117 
118 /** informs the Benders' decomposition that the presolving process has completed */
119 extern
121  SCIP_BENDERS* benders, /**< Benders' decomposition */
122  SCIP_SET* set, /**< global SCIP settings */
123  SCIP_STAT* stat /**< dynamic problem statistics */
124  );
125 
126 /** informs Benders' decomposition that the branch and bound process is being started */
127 extern
129  SCIP_BENDERS* benders, /**< Benders' decomposition */
130  SCIP_SET* set /**< global SCIP settings */
131  );
132 
133 /** informs Benders' decomposition that the branch and bound process data is being freed */
134 extern
136  SCIP_BENDERS* benders, /**< Benders' decomposition */
137  SCIP_SET* set /**< global SCIP settings */
138  );
139 
140 /** activates Benders' decomposition such that it is called in LP solving loop */
142  SCIP_BENDERS* benders, /**< the Benders' decomposition structure */
143  SCIP_SET* set, /**< global SCIP settings */
144  int nsubproblems /**< the number subproblems used in this decomposition */
145  );
146 
147 /** deactivates Benders' decomposition such that it is no longer called in LP solving loop */
149  SCIP_BENDERS* benders, /**< the Benders' decomposition structure */
150  SCIP_SET* set /**< global SCIP settings */
151  );
152 
153 /** enables or disables all clocks of Benders' decomposition depending on the value of the flag */
154 extern
156  SCIP_BENDERS* benders, /**< the Benders' decomposition for which all clocks should be enabled or disabled */
157  SCIP_Bool enable /**< should the clocks of the Benders' decomposition be enabled? */
158  );
159 
160 /** solves the subproblem using the current master problem solution.
161  *
162  * The checkint flag indicates whether integer feasibility can be assumed. If it is not assumed, i.e. checkint ==
163  * FALSE, then only the convex relaxations of the subproblems are solved. If integer feasibility is assumed, i.e.
164  * checkint == TRUE, then the convex relaxations and the full CIP are solved to generate Benders' cuts and check
165  * solution feasibility.
166  */
167 extern
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. */
180 extern
182  SCIP_BENDERS* benders, /**< Benders' decomposition */
183  SCIP_SET* set, /**< global SCIP settings */
184  SCIP_SOL* sol, /**< primal CIP solution */
185  int probnum, /**< the subproblem number */
186  SCIP_BENDERSSOLVELOOP solveloop, /**< the solve loop iteration. The first iter is for LP, the second for IP */
187  SCIP_Bool enhancement, /**< is the solve performed as part of an enhancement? */
188  SCIP_Bool* solved, /**< flag to indicate whether the subproblem was solved */
189  SCIP_Bool* infeasible, /**< returns whether the current subproblem is infeasible */
190  SCIP_BENDERSENFOTYPE type /**< the enforcement type calling this function */
191  );
192 
193 /** sets up the subproblem using the solution to the master problem */
194 extern
196  SCIP_BENDERS* benders, /**< Benders' decomposition */
197  SCIP_SET* set, /**< global SCIP settings */
198  SCIP_SOL* sol, /**< primal CIP solution */
199  int probnum /**< the subproblem number */
200  );
201 
202 /** Solve a Benders' decomposition subproblems. This will either call the user defined method or the generic solving
203  * methods. If the generic method is called, then the subproblem must be set up before calling this method. */
204 extern
206  SCIP_BENDERS* benders, /**< Benders' decomposition */
207  SCIP_SET* set, /**< global SCIP settings */
208  SCIP_SOL* sol, /**< primal CIP solution, can be NULL */
209  int probnumber, /**< the subproblem number */
210  SCIP_Bool* infeasible, /**< returns whether the current subproblem is infeasible */
211  SCIP_BENDERSENFOTYPE type, /**< the enforcement type calling this function */
212  SCIP_Bool solvecip, /**< directly solve the CIP subproblem */
213  SCIP_Real* objective /**< the objective function value of the subproblem, can be NULL */
214  );
215 
216 /** frees the subproblems */
217 extern
219  SCIP_BENDERS* benders, /**< Benders' decomposition */
220  SCIP_SET* set, /**< global SCIP settings */
221  int probnumber /**< the subproblem number */
222  );
223 
224 /** compares the subproblem objective value with the auxiliary variable value for optimality */
225 extern
227  SCIP_BENDERS* benders, /**< the benders' decomposition structure */
228  SCIP_SET* set, /**< global SCIP settings */
229  SCIP_SOL* sol, /**< primal CIP solution */
230  int probnumber, /**< the subproblem number */
231  SCIP_Bool* optimal /**< flag to indicate whether the current subproblem is optimal for the master */
232  );
233 
234 /** returns the value of the auxiliary variable value in a master problem solution */
235 extern
237  SCIP_BENDERS* benders, /**< the benders' decomposition structure */
238  SCIP_SET* set, /**< global SCIP settings */
239  SCIP_SOL* sol, /**< primal CIP solution */
240  int probnumber /**< the subproblem number */
241  );
242 
243 /** Solves an independent subproblem to identify its lower bound. The lower bound is then used to update the bound on
244  * the auxiliary variable.
245  */
246 extern
248  SCIP_BENDERS* benders, /**< Benders' decomposition */
249  SCIP_SET* set, /**< global SCIP settings */
250  int probnumber, /**< the subproblem to be evaluated */
251  SCIP_Real* lowerbound, /**< the lowerbound for the subproblem */
252  SCIP_Bool* infeasible /**< was the subproblem found to be infeasible? */
253  );
254 
255 /** merges a subproblem into the master problem. This process just adds a copy of the subproblem variables and
256  * constraints to the master problem, but keeps the subproblem stored in the Benders' decomposition data structure.
257  * The reason for keeping the subproblem available is for when it is queried for solutions after the problem is solved.
258  *
259  * Once the subproblem is merged into the master problem, then the subproblem is flagged as disabled. This means that
260  * it will not be solved in the subsequent subproblem solving loops.
261  *
262  * The associated auxiliary variables are kept in the master problem. The objective function of the merged subproblem
263  * is added as an underestimator constraint.
264  */
265 extern
267  SCIP_BENDERS* benders, /**< Benders' decomposition */
268  SCIP_SET* set, /**< global SCIP settings */
269  SCIP_HASHMAP* varmap, /**< a hashmap to store the mapping of subproblem variables corresponding
270  * to the newly created master variables, or NULL */
271  SCIP_HASHMAP* consmap, /**< a hashmap to store the mapping of subproblem constraints to the
272  corresponding newly created constraints, or NULL */
273  int probnumber /**< the number of the subproblem that will be merged into the master problem*/
274  );
275 
276 /** sets priority of Benders' decomposition */
277 extern
279  SCIP_BENDERS* benders, /**< Benders' decomposition */
280  SCIP_SET* set, /**< global SCIP settings */
281  int priority /**< new priority of the Benders' decomposition */
282  );
283 
284 /** sets copy callback of Benders' decomposition */
285 extern
286 void SCIPbendersSetCopy(
287  SCIP_BENDERS* benders, /**< Benders' decomposition */
288  SCIP_DECL_BENDERSCOPY ((*benderscopy)) /**< copy callback of Benders' decomposition */
289  );
290 
291 /** sets destructor callback of Benders' decomposition */
292 extern
293 void SCIPbendersSetFree(
294  SCIP_BENDERS* benders, /**< Benders' decomposition */
295  SCIP_DECL_BENDERSFREE ((*bendersfree)) /**< destructor of Benders' decomposition */
296  );
297 
298 /** sets initialization callback of Benders' decomposition */
299 extern
300 void SCIPbendersSetInit(
301  SCIP_BENDERS* benders, /**< Benders' decomposition */
302  SCIP_DECL_BENDERSINIT((*bendersinit)) /**< initialize Benders' decomposition */
303  );
304 
305 /** sets deinitialization callback of Benders' decomposition */
306 extern
307 void SCIPbendersSetExit(
308  SCIP_BENDERS* benders, /**< Benders' decomposition */
309  SCIP_DECL_BENDERSEXIT((*bendersexit)) /**< deinitialize Benders' decomposition */
310  );
311 
312 /** sets presolving initialization callback of Benders' decomposition */
314  SCIP_BENDERS* benders, /**< Benders' decomposition */
315  SCIP_DECL_BENDERSINITPRE((*bendersinitpre))/**< initialize presolving for Benders' decomposition */
316  );
317 
318 /** sets presolving deinitialization callback of Benders' decomposition */
320  SCIP_BENDERS* benders, /**< Benders' decomposition */
321  SCIP_DECL_BENDERSEXITPRE((*bendersexitpre))/**< deinitialize presolving for Benders' decomposition */
322  );
323 
324 /** sets solving process initialization callback of Benders' decomposition */
325 extern
327  SCIP_BENDERS* benders, /**< Benders' decomposition */
328  SCIP_DECL_BENDERSINITSOL((*bendersinitsol))/**< solving process initialization callback of Benders' decomposition */
329  );
330 
331 /** sets solving process deinitialization callback of Benders' decomposition */
332 extern
334  SCIP_BENDERS* benders, /**< Benders' decomposition */
335  SCIP_DECL_BENDERSEXITSOL((*bendersexitsol))/**< solving process deinitialization callback of Benders' decomposition */
336  );
337 
338 /** sets the pre subproblem solve callback of Benders' decomposition */
339 extern
341  SCIP_BENDERS* benders, /**< Benders' decomposition */
342  SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve))/**< called prior to the subproblem solving loop */
343  );
344 
345 /** sets convex solve callback of Benders' decomposition */
346 extern
348  SCIP_BENDERS* benders, /**< Benders' decomposition */
349  SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex))/**< solving method for the convex Benders' decomposition subproblem */
350  );
351 
352 /** sets solve callback of Benders' decomposition */
353 extern
355  SCIP_BENDERS* benders, /**< Benders' decomposition */
356  SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub))/**< solving method for a Benders' decomposition subproblem */
357  );
358 
359 /** sets post-solve callback of Benders' decomposition */
360 extern
362  SCIP_BENDERS* benders, /**< Benders' decomposition */
363  SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve))/**< solving process deinitialization callback of Benders' decomposition */
364  );
365 
366 /** sets free subproblem callback of Benders' decomposition */
367 extern
369  SCIP_BENDERS* benders, /**< Benders' decomposition */
370  SCIP_DECL_BENDERSFREESUB((*bendersfreesub))/**< the freeing callback for the subproblem */
371  );
372 
373 /** Returns the corresponding master or subproblem variable for the given variable.
374  * This provides a call back for the variable mapping between the master and subproblems. */
375 extern
377  SCIP_BENDERS* benders, /**< Benders' decomposition */
378  SCIP_SET* set, /**< global SCIP settings */
379  SCIP_VAR* var, /**< the variable for which the corresponding variable is desired */
380  SCIP_VAR** mappedvar, /**< the variable that is mapped to var */
381  int probnumber /**< the problem number for the desired variable, -1 for the master problem */
382  );
383 
384 /** adds a subproblem to the Benders' decomposition data */
385 extern
387  SCIP_BENDERS* benders, /**< Benders' decomposition */
388  SCIP* subproblem /**< subproblem to be added to the data storage */
389  );
390 
391 /** removes the subproblems from the Benders' decomposition data */
393  SCIP_BENDERS* benders /**< Benders' decomposition */
394  );
395 
396 /** sets the subproblem setup flag */
397 extern
399  SCIP_BENDERS* benders, /**< Benders' decomposition */
400  int probnumber, /**< the subproblem number */
401  SCIP_Bool issetup /**< flag to indicate whether the subproblem has been setup */
402  );
403 
404 /** returns the subproblem setup flag */
405 extern
407  SCIP_BENDERS* benders, /**< Benders' decomposition */
408  int probnumber /**< the subproblem number */
409  );
410 
411 /** Sets whether the subproblem is enabled or disabled. A subproblem is disabled if it has been merged into the master
412  * problem.
413  */
414 extern
416  SCIP_BENDERS* benders, /**< Benders' decomposition */
417  int probnumber, /**< the subproblem number */
418  SCIP_Bool enabled /**< flag to indicate whether the subproblem is enabled */
419  );
420 
421 /** changes all of the master problem variables in the given subproblem to continuous */
422 extern
424  SCIP_BENDERS* benders, /**< Benders' decomposition */
425  SCIP_SET* set, /**< global SCIP settings */
426  int probnumber /**< the subproblem number */
427  );
428 
429 /** sets a flag to indicate whether the master variables are all set to continuous */
430 extern
432  SCIP_BENDERS* benders, /**< Benders' decomposition */
433  int probnumber, /**< the subproblem number */
434  SCIP_Bool arecont /**< flag to indicate whether the master problem variables are continuous */
435  );
436 
437 /** returns whether the master variables are all set to continuous */
438 extern
440  SCIP_BENDERS* benders, /**< Benders' decomposition */
441  int probnumber /**< the subproblem number */
442  );
443 
444 /** inserts a Benders' cut algorithm plugin into the Benders' cuts plugin list */
445 extern
447  SCIP_BENDERS* benders, /**< Benders' decomposition structure */
448  SCIP_SET* set, /**< global SCIP settings */
449  SCIP_BENDERSCUT* benderscut /**< Benders' cut */
450  );
451 
452 /** sets the Benders' cuts sorted flags in the Benders' decomposition */
453 extern
455  SCIP_BENDERS* benders, /**< Benders' decomposition structure */
456  SCIP_Bool sorted /**< the value to set the sorted flag to */
457  );
458 
459 /** sorts Benders' decomposition cuts by priorities */
460 extern
462  SCIP_BENDERS* benders /**< Benders' decomposition */
463  );
464 
465 /** sorts Benders' decomposition cuts by name */
466 extern
468  SCIP_BENDERS* benders /**< Benders' decomposition */
469  );
470 
471 #ifdef __cplusplus
472 }
473 #endif
474 
475 #endif
enum SCIP_Result SCIP_RESULT
Definition: type_result.h:52
#define SCIP_DECL_BENDERSCREATESUB(x)
Definition: type_benders.h:170
void SCIPbendersSetSubproblemIsSetup(SCIP_BENDERS *benders, int probnumber, SCIP_Bool issetup)
Definition: benders.c:4564
SCIP_RETCODE SCIPbendersGetVar(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_VAR *var, SCIP_VAR **mappedvar, int probnumber)
Definition: benders.c:4004
void SCIPbendersSetExit(SCIP_BENDERS *benders, SCIP_DECL_BENDERSEXIT((*bendersexit)))
Definition: benders.c:4084
void SCIPbendersSetBenderscutsSorted(SCIP_BENDERS *benders, SCIP_Bool sorted)
Definition: benders.c:4763
type definitions for miscellaneous datastructures
SCIP_RETCODE SCIPbendersAddSubproblem(SCIP_BENDERS *benders, SCIP *subproblem)
Definition: benders.c:4362
#define SCIP_DECL_BENDERSINITSOL(x)
Definition: type_benders.h:130
#define SCIP_DECL_BENDERSFREE(x)
Definition: type_benders.h:82
SCIP_RETCODE SCIPbendersFree(SCIP_BENDERS **benders, SCIP_SET *set)
Definition: benders.c:1001
void SCIPbendersSetFreesub(SCIP_BENDERS *benders, SCIP_DECL_BENDERSFREESUB((*bendersfreesub)))
Definition: benders.c:4183
#define SCIP_DECL_BENDERSINITPRE(x)
Definition: type_benders.h:111
SCIP_RETCODE SCIPbendersInitsol(SCIP_BENDERS *benders, SCIP_SET *set)
Definition: benders.c:1739
SCIP_RETCODE SCIPbendersMergeSubproblemIntoMaster(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, int probnumber)
Definition: benders.c:3821
SCIP_RETCODE SCIPbendersFreeSubproblem(SCIP_BENDERS *benders, SCIP_SET *set, int probnumber)
Definition: benders.c:3605
#define SCIP_DECL_BENDERSGETVAR(x)
Definition: type_benders.h:339
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
enum SCIP_BendersEnfoType SCIP_BENDERSENFOTYPE
Definition: type_benders.h:42
SCIP_Bool SCIPbendersSubproblemIsSetup(SCIP_BENDERS *benders, int probnumber)
Definition: benders.c:4577
type definitions for global SCIP settings
void SCIPbendersSetPriority(SCIP_BENDERS *benders, SCIP_SET *set, int priority)
Definition: benders.c:4224
void SCIPbendersSetInitsol(SCIP_BENDERS *benders, SCIP_DECL_BENDERSINITSOL((*bendersinitsol)))
Definition: benders.c:4117
#define SCIP_DECL_BENDERSINIT(x)
Definition: type_benders.h:91
type definitions for return codes for SCIP methods
type definitions for problem statistics
void SCIPbendersRemoveSubproblems(SCIP_BENDERS *benders)
Definition: benders.c:4380
SCIP_RETCODE SCIPbendersExitpre(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_STAT *stat)
Definition: benders.c:1713
#define SCIP_DECL_BENDERSFREESUB(x)
Definition: type_benders.h:323
SCIP_RETCODE SCIPbendersExecSubproblemSolve(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnum, SCIP_BENDERSSOLVELOOP solveloop, SCIP_Bool enhancement, SCIP_Bool *solved, SCIP_Bool *infeasible, SCIP_BENDERSENFOTYPE type)
Definition: benders.c:2946
SCIP_RETCODE SCIPbendersCheckSubproblemOptimality(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber, SCIP_Bool *optimal)
Definition: benders.c:3655
SCIP_RETCODE SCIPbendersChgMastervarsToCont(SCIP_BENDERS *benders, SCIP_SET *set, int probnumber)
Definition: benders.c:4494
#define SCIP_DECL_BENDERSEXIT(x)
Definition: type_benders.h:100
void SCIPbendersSetSolvesub(SCIP_BENDERS *benders, SCIP_DECL_BENDERSSOLVESUB((*benderssolvesub)))
Definition: benders.c:4161
#define SCIP_DECL_BENDERSSOLVESUB(x)
Definition: type_benders.h:265
type definitions for SCIP&#39;s main datastructure
SCIP_RETCODE SCIPbendersActivate(SCIP_BENDERS *benders, SCIP_SET *set, int nsubproblems)
Definition: benders.c:1828
void SCIPbendersSortBenderscuts(SCIP_BENDERS *benders)
Definition: benders.c:4864
SCIP_RETCODE SCIPbendersSetupSubproblem(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnum)
Definition: benders.c:3118
void SCIPbendersSetFree(SCIP_BENDERS *benders, SCIP_DECL_BENDERSFREE((*bendersfree)))
Definition: benders.c:4062
struct SCIP_BendersData SCIP_BENDERSDATA
Definition: type_benders.h:63
#define SCIP_DECL_BENDERSSOLVESUBCONVEX(x)
Definition: type_benders.h:232
type definitions for problem variables
void SCIPbendersSetCopy(SCIP_BENDERS *benders, SCIP_DECL_BENDERSCOPY((*benderscopy)))
Definition: benders.c:4051
#define SCIP_DECL_BENDERSCOPY(x)
Definition: type_benders.h:74
void SCIPbendersDeactivate(SCIP_BENDERS *benders, SCIP_SET *set)
Definition: benders.c:1891
#define SCIP_Bool
Definition: def.h:62
void SCIPbendersSetExitsol(SCIP_BENDERS *benders, SCIP_DECL_BENDERSEXITSOL((*bendersexitsol)))
Definition: benders.c:4128
SCIP_RETCODE SCIPbendersIncludeBenderscut(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_BENDERSCUT *benderscut)
Definition: benders.c:4775
SCIP_RETCODE SCIPbendersSetMastervarsCont(SCIP_BENDERS *benders, int probnumber, SCIP_Bool arecont)
Definition: benders.c:4681
void SCIPbendersSetInit(SCIP_BENDERS *benders, SCIP_DECL_BENDERSINIT((*bendersinit)))
Definition: benders.c:4073
SCIP_RETCODE SCIPbendersInit(SCIP_BENDERS *benders, SCIP_SET *set)
Definition: benders.c:1273
SCIP_Bool SCIPbendersGetMastervarsCont(SCIP_BENDERS *benders, int probnumber)
Definition: benders.c:4708
type definitions for Benders&#39; decomposition methods
void SCIPbendersSetSolvesubconvex(SCIP_BENDERS *benders, SCIP_DECL_BENDERSSOLVESUBCONVEX((*benderssolvesubconvex)))
Definition: benders.c:4150
type definitions for storing primal CIP solutions
type definitions for Benders&#39; decomposition cut
void SCIPbendersSetExitpre(SCIP_BENDERS *benders, SCIP_DECL_BENDERSEXITPRE((*bendersexitpre)))
Definition: benders.c:4106
void SCIPbendersSetPresubsolve(SCIP_BENDERS *benders, SCIP_DECL_BENDERSPRESUBSOLVE((*benderspresubsolve)))
Definition: benders.c:4139
enum SCIP_BendersSolveLoop SCIP_BENDERSSOLVELOOP
Definition: type_benders.h:51
#define SCIP_DECL_BENDERSEXITSOL(x)
Definition: type_benders.h:141
void SCIPbendersEnableOrDisableClocks(SCIP_BENDERS *benders, SCIP_Bool enable)
Definition: benders.c:4300
void SCIPbendersSortBenderscutsName(SCIP_BENDERS *benders)
Definition: benders.c:4879
#define SCIP_Real
Definition: def.h:150
SCIP_RETCODE SCIPbendersComputeSubproblemLowerbound(SCIP_BENDERS *benders, SCIP_SET *set, int probnumber, SCIP_Real *lowerbound, SCIP_Bool *infeasible)
Definition: benders.c:3708
result codes for SCIP callback methods
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:835
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:2505
void SCIPbendersSetSubproblemEnabled(SCIP_BENDERS *benders, int probnumber, SCIP_Bool enabled)
Definition: benders.c:4643
SCIP_RETCODE SCIPbendersInitpre(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_STAT *stat)
Definition: benders.c:1669
#define SCIP_DECL_BENDERSPOSTSOLVE(x)
Definition: type_benders.h:301
#define SCIP_DECL_BENDERSEXITPRE(x)
Definition: type_benders.h:119
type definitions for message output methods
SCIP_RETCODE SCIPbendersCopyInclude(SCIP_BENDERS *benders, SCIP_SET *sourceset, SCIP_SET *targetset, SCIP_HASHMAP *varmap, SCIP_Bool *valid)
Definition: benders.c:777
SCIP_RETCODE SCIPbendersExitsol(SCIP_BENDERS *benders, SCIP_SET *set)
Definition: benders.c:1772
void SCIPbendersSetPostsolve(SCIP_BENDERS *benders, SCIP_DECL_BENDERSPOSTSOLVE((*benderspostsolve)))
Definition: benders.c:4172
SCIP_RETCODE SCIPbendersExit(SCIP_BENDERS *benders, SCIP_SET *set)
Definition: benders.c:1552
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:419
void SCIPbendersSetInitpre(SCIP_BENDERS *benders, SCIP_DECL_BENDERSINITPRE((*bendersinitpre)))
Definition: benders.c:4095
SCIP_RETCODE SCIPbendersSolveSubproblem(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber, SCIP_Bool *infeasible, SCIP_BENDERSENFOTYPE type, SCIP_Bool solvecip, SCIP_Real *objective)
Definition: benders.c:3217
SCIP_Real SCIPbendersGetAuxiliaryVarVal(SCIP_BENDERS *benders, SCIP_SET *set, SCIP_SOL *sol, int probnumber)
Definition: benders.c:3687
#define SCIP_DECL_BENDERSPRESUBSOLVE(x)
Definition: type_benders.h:192
memory allocation routines