Detailed Description
branching rule for the original problem while real branching is applied in the master
Definition in file branch_empty.c.
#include <assert.h>#include <string.h>#include "gcg/branch_empty.h"#include "gcg/relax_gcg.h"#include "gcg/gcg.h"#include "gcg/branch_orig.h"#include "gcg/cons_masterbranch.h"#include "gcg/cons_origbranch.h"#include "scip/branch_allfullstrong.h"#include "scip/branch_fullstrong.h"#include "scip/branch_inference.h"#include "scip/branch_mostinf.h"#include "scip/branch_leastinf.h"#include "scip/branch_pscost.h"#include "scip/branch_random.h"#include "scip/branch_relpscost.h"#include "scip/cons_varbound.h"#include "gcg/type_branchgcg.h"Go to the source code of this file.
Data Structures | |
| struct | SCIP_BranchruleData |
Macros | |
| #define | BRANCHRULE_NAME "empty" |
| #define | BRANCHRULE_DESC "branching rule for the original problem while real branching is applied in the master" |
| #define | BRANCHRULE_PRIORITY 1000000 |
| #define | BRANCHRULE_MAXDEPTH -1 |
| #define | BRANCHRULE_MAXBOUNDDIST 1.0 |
| #define | branchInitEmpty NULL |
| #define | branchExitEmpty NULL |
| #define | branchInitsolEmpty NULL |
| #define | branchExitsolEmpty NULL |
Functions | |
| static SCIP_RETCODE | includeSCIPBranchingRules (SCIP *scip) |
| static SCIP_RETCODE | createOrigbranchConstraint (GCG *gcg, SCIP_NODE *childnode, SCIP_CONS *masterbranchchildcons) |
| static SCIP_RETCODE | applyOriginalBranching (GCG *gcg, SCIP_NODE *childnode, SCIP_CONS *masterbranchchildcons) |
| static SCIP_RETCODE | createBranchNodesInOrigprob (GCG *gcg, SCIP_RESULT *result) |
| static | SCIP_DECL_BRANCHCOPY (branchCopyEmpty) |
| static | SCIP_DECL_BRANCHFREE (branchFreeEmpty) |
| static | SCIP_DECL_BRANCHEXECLP (branchExeclpEmpty) |
| static | SCIP_DECL_BRANCHEXECEXT (branchExecextEmpty) |
| static | SCIP_DECL_BRANCHEXECPS (branchExecpsEmpty) |
| SCIP_RETCODE | GCGincludeBranchruleEmpty (GCG *gcg) |
Macro Definition Documentation
◆ BRANCHRULE_NAME
| #define BRANCHRULE_NAME "empty" |
Definition at line 58 of file branch_empty.c.
◆ BRANCHRULE_DESC
| #define BRANCHRULE_DESC "branching rule for the original problem while real branching is applied in the master" |
Definition at line 59 of file branch_empty.c.
◆ BRANCHRULE_PRIORITY
| #define BRANCHRULE_PRIORITY 1000000 |
Definition at line 60 of file branch_empty.c.
◆ BRANCHRULE_MAXDEPTH
| #define BRANCHRULE_MAXDEPTH -1 |
Definition at line 61 of file branch_empty.c.
◆ BRANCHRULE_MAXBOUNDDIST
| #define BRANCHRULE_MAXBOUNDDIST 1.0 |
Definition at line 62 of file branch_empty.c.
◆ branchInitEmpty
| #define branchInitEmpty NULL |
initialization method of branching rule (called after problem was transformed)
Definition at line 366 of file branch_empty.c.
Referenced by GCGincludeBranchruleEmpty().
◆ branchExitEmpty
| #define branchExitEmpty NULL |
deinitialization method of branching rule (called before transformed problem is freed)
Definition at line 369 of file branch_empty.c.
Referenced by GCGincludeBranchruleEmpty().
◆ branchInitsolEmpty
| #define branchInitsolEmpty NULL |
solving process initialization method of branching rule (called when branch and bound process is about to begin)
Definition at line 372 of file branch_empty.c.
Referenced by GCGincludeBranchruleEmpty().
◆ branchExitsolEmpty
| #define branchExitsolEmpty NULL |
solving process deinitialization method of branching rule (called before branch and bound process data is freed)
Definition at line 375 of file branch_empty.c.
Referenced by GCGincludeBranchruleEmpty().
Function Documentation
◆ includeSCIPBranchingRules()
|
static |
copy default SCIP branching rules in order to solve restrictions of the original problem as a subSCIP without Dantzig-Wolfe decomposition
Definition at line 77 of file branch_empty.c.
References assert(), includeSCIPBranchingRules(), and SCIP_CALL().
Referenced by includeSCIPBranchingRules(), and SCIP_DECL_BRANCHCOPY().
◆ createOrigbranchConstraint()
|
static |
for a new branch-and-bound node on the master problem add an original branching constraint that holds the branching decision to the corresponding node in the original problem
Definition at line 99 of file branch_empty.c.
References assert(), createOrigbranchConstraint(), GCGconsMasterbranchGetBranchdata(), GCGconsMasterbranchGetBranchrule(), GCGconsMasterbranchGetName(), GCGconsMasterbranchGetNOrigbranchConss(), GCGconsMasterbranchGetOrigbranchConss(), GCGconsMasterbranchReleaseOrigbranchConss(), GCGconsMasterbranchSetOrigcons(), GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchSetMastercons(), GCGcreateConsOrigbranch(), GCGgetOrigprob(), i, origprob, SCIP_CALL(), and SCIPdebugMessage().
Referenced by createBranchNodesInOrigprob(), and createOrigbranchConstraint().
◆ applyOriginalBranching()
|
static |
Definition at line 158 of file branch_empty.c.
References applyOriginalBranching(), assert(), GCG_BOUNDTYPE_FIXED, GCG_BOUNDTYPE_LOWER, GCG_BOUNDTYPE_UPPER, GCGbranchOrigGetBoundtype(), GCGbranchOrigGetNewbound(), GCGbranchOrigGetOrigvar(), GCGconsMasterbranchAddCopiedVarBndchg(), GCGconsMasterbranchGetBranchdata(), GCGconsMasterbranchGetNode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGvarGetBlock(), masterprob, origprob, and SCIP_CALL().
Referenced by applyOriginalBranching(), and createBranchNodesInOrigprob().
◆ createBranchNodesInOrigprob()
|
static |
creates branch-and-bound nodes in the original problem corresponding to those in the master problem
- Parameters
-
gcg SCIP data structure result result pointer
Definition at line 227 of file branch_empty.c.
References applyOriginalBranching(), assert(), createBranchNodesInOrigprob(), createOrigbranchConstraint(), GCGbranchGetScipBranchrule(), GCGconsMasterbranchGetActiveCons(), GCGconsMasterbranchGetBranchrule(), GCGconsMasterbranchGetChildcons(), GCGconsMasterbranchGetNChildconss(), GCGconsMasterbranchGetNode(), GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchGetNode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGrestoreLimitSettings(), i, masterprob, origprob, result, SCIP_CALL(), and SCIPdebugMessage().
Referenced by createBranchNodesInOrigprob(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), and SCIP_DECL_BRANCHEXECPS().
◆ SCIP_DECL_BRANCHCOPY()
|
static |
copy method for empty branching rule
Definition at line 335 of file branch_empty.c.
References assert(), includeSCIPBranchingRules(), SCIP_CALL(), and SCIP_DECL_BRANCHCOPY().
Referenced by SCIP_DECL_BRANCHCOPY(), SCIP_DECL_BRANCHCOPY(), and SCIP_DECL_BRANCHCOPY().
◆ SCIP_DECL_BRANCHFREE()
|
static |
destructor of branching rule to free user data (called when SCIP is exiting)
Definition at line 350 of file branch_empty.c.
References assert(), BRANCHRULE_NAME, SCIP_DECL_BRANCHFREE(), and SCIPfreeMemory().
◆ SCIP_DECL_BRANCHEXECLP()
|
static |
branching execution method for fractional LP solutions
Definition at line 379 of file branch_empty.c.
References assert(), BRANCHRULE_NAME, createBranchNodesInOrigprob(), SCIP_BranchruleData::gcg, result, SCIP_CALL(), and SCIP_DECL_BRANCHEXECLP().
◆ SCIP_DECL_BRANCHEXECEXT()
|
static |
branching execution method relaxation solutions
Definition at line 397 of file branch_empty.c.
References assert(), BRANCHRULE_NAME, createBranchNodesInOrigprob(), SCIP_BranchruleData::gcg, result, SCIP_CALL(), and SCIP_DECL_BRANCHEXECEXT().
◆ SCIP_DECL_BRANCHEXECPS()
|
static |
branching execution method for not completely fixed pseudo solutions
Definition at line 415 of file branch_empty.c.
References assert(), BRANCHRULE_NAME, createBranchNodesInOrigprob(), SCIP_BranchruleData::gcg, result, SCIP_CALL(), and SCIP_DECL_BRANCHEXECPS().
◆ GCGincludeBranchruleEmpty()
| SCIP_RETCODE GCGincludeBranchruleEmpty | ( | GCG * | gcg | ) |
creates the empty branching rule and includes it in SCIP
creates the empty LP branching rule and includes it in SCIP
- Parameters
-
gcg SCIP data structure
Definition at line 437 of file branch_empty.c.
References assert(), branchExitEmpty, branchExitsolEmpty, branchInitEmpty, branchInitsolEmpty, BRANCHRULE_DESC, BRANCHRULE_MAXBOUNDDIST, BRANCHRULE_MAXDEPTH, BRANCHRULE_NAME, BRANCHRULE_PRIORITY, SCIP_BranchruleData::gcg, GCGgetOrigprob(), GCGincludeBranchruleEmpty(), origprob, and SCIP_CALL().
Referenced by GCGincludeBranchruleEmpty(), and GCGincludeGcgPlugins().