Scippy

GCG

Branch-and-Price & Column Generation for Everyone

branch_empty.c File Reference

Detailed Description

branching rule for the original problem while real branching is applied in the master

Author
Marcel Schmickerath
Martin Bergner
Christian Puchert

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 SCIP_RETCODE includeSCIPBranchingRules ( SCIP *  scip)
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 SCIP_RETCODE createOrigbranchConstraint ( GCG *  gcg,
SCIP_NODE *  childnode,
SCIP_CONS *  masterbranchchildcons 
)
static

◆ applyOriginalBranching()

◆ createBranchNodesInOrigprob()

◆ SCIP_DECL_BRANCHCOPY()

static SCIP_DECL_BRANCHCOPY ( branchCopyEmpty  )
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 SCIP_DECL_BRANCHFREE ( branchFreeEmpty  )
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 SCIP_DECL_BRANCHEXECLP ( branchExeclpEmpty  )
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 SCIP_DECL_BRANCHEXECEXT ( branchExecextEmpty  )
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 SCIP_DECL_BRANCHEXECPS ( branchExecpsEmpty  )
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)