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.
◆ branchExitEmpty
| #define branchExitEmpty NULL |
deinitialization method of branching rule (called before transformed problem is freed)
Definition at line 369 of file branch_empty.c.
◆ 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.
◆ 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.
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 NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeBranchruleAllfullstrong(), SCIPincludeBranchruleFullstrong(), SCIPincludeBranchruleInference(), SCIPincludeBranchruleLeastinf(), SCIPincludeBranchruleMostinf(), SCIPincludeBranchrulePscost(), SCIPincludeBranchruleRandom(), and SCIPincludeBranchruleRelpscost().
Referenced by 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 GCGconsMasterbranchGetBranchdata(), GCGconsMasterbranchGetBranchrule(), GCGconsMasterbranchGetName(), GCGconsMasterbranchGetNOrigbranchConss(), GCGconsMasterbranchGetOrigbranchConss(), GCGconsMasterbranchReleaseOrigbranchConss(), GCGconsMasterbranchSetOrigcons(), GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchSetMastercons(), GCGcreateConsOrigbranch(), GCGgetOrigprob(), NULL, SCIP_CALL, SCIP_OKAY, SCIPaddConsNode(), SCIPconsGetName(), SCIPdebugMessage, and SCIPreleaseCons().
Referenced by createBranchNodesInOrigprob().
◆ applyOriginalBranching()
|
static |
Definition at line 158 of file branch_empty.c.
References GCG_BOUNDTYPE_FIXED, GCG_BOUNDTYPE_LOWER, GCG_BOUNDTYPE_UPPER, GCGbranchOrigGetBoundtype(), GCGbranchOrigGetNewbound(), GCGbranchOrigGetOrigvar(), GCGconsMasterbranchAddCopiedVarBndchg(), GCGconsMasterbranchGetBranchdata(), GCGconsMasterbranchGetNode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGvarGetBlock(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_SOLVING, SCIPchgVarLbNode(), SCIPchgVarUbNode(), SCIPgetStage(), SCIPinfinity(), SCIPisGE(), SCIPisGT(), SCIPisLE(), SCIPisLT(), SCIPupdateNodeLowerbound(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal().
Referenced by 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(), createOrigbranchConstraint(), GCGbranchGetScipBranchrule(), GCGconsMasterbranchGetActiveCons(), GCGconsMasterbranchGetBranchrule(), GCGconsMasterbranchGetChildcons(), GCGconsMasterbranchGetNChildconss(), GCGconsMasterbranchGetNode(), GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchGetNode(), GCGgetMasterprob(), GCGgetOrigprob(), GCGrestoreLimitSettings(), NULL, SCIP_Bool, SCIP_BRANCHED, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIPbranchruleGetName(), SCIPcreateChild(), SCIPdebugMessage, SCIPgetBoolParam(), SCIPgetLocalTransEstimate(), SCIPgetNChildren(), SCIPgetStage(), SCIPnodeGetNumber(), and SCIPwarningMessage().
Referenced by 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 includeSCIPBranchingRules(), NULL, SCIP_CALL, and SCIP_OKAY.
◆ 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 BRANCHRULE_NAME, NULL, SCIP_OKAY, SCIPbranchruleGetData(), SCIPbranchruleGetName(), and SCIPfreeMemory.
◆ SCIP_DECL_BRANCHEXECLP()
|
static |
branching execution method for fractional LP solutions
Definition at line 379 of file branch_empty.c.
References BRANCHRULE_NAME, createBranchNodesInOrigprob(), SCIP_BranchruleData::gcg, NULL, SCIP_CALL, SCIP_OKAY, SCIPbranchruleGetData(), and SCIPbranchruleGetName().
◆ SCIP_DECL_BRANCHEXECEXT()
|
static |
branching execution method relaxation solutions
Definition at line 397 of file branch_empty.c.
References BRANCHRULE_NAME, createBranchNodesInOrigprob(), SCIP_BranchruleData::gcg, NULL, SCIP_CALL, SCIP_OKAY, SCIPbranchruleGetData(), and SCIPbranchruleGetName().
◆ SCIP_DECL_BRANCHEXECPS()
|
static |
branching execution method for not completely fixed pseudo solutions
Definition at line 415 of file branch_empty.c.
References BRANCHRULE_NAME, createBranchNodesInOrigprob(), SCIP_BranchruleData::gcg, NULL, SCIP_CALL, SCIP_OKAY, SCIPbranchruleGetData(), and SCIPbranchruleGetName().
◆ GCGincludeBranchruleEmpty()
| SCIP_RETCODE GCGincludeBranchruleEmpty | ( | GCG * | gcg | ) |
creates the empty branching rule and includes it in SCIP
- Parameters
-
gcg SCIP data structure
Definition at line 437 of file branch_empty.c.
References branchExitEmpty, branchExitsolEmpty, branchInitEmpty, branchInitsolEmpty, BRANCHRULE_DESC, BRANCHRULE_MAXBOUNDDIST, BRANCHRULE_MAXDEPTH, BRANCHRULE_NAME, BRANCHRULE_PRIORITY, SCIP_BranchruleData::gcg, GCGgetOrigprob(), NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and SCIPincludeBranchrule().
Referenced by GCGincludeGcgPlugins().