GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
type_branchgcg.h File Reference

Detailed Description

type definitions for branching rules in GCG projects

Author
Gerald Gamrath

Definition in file type_branchgcg.h.

Go to the source code of this file.

Macros

#define GCG_DECL_BRANCHACTIVEMASTER(x)
#define GCG_DECL_BRANCHDEACTIVEMASTER(x)
#define GCG_DECL_BRANCHPROPMASTER(x)
#define GCG_DECL_BRANCHMASTERSOLVED(x)
#define GCG_DECL_BRANCHDATADELETE(x)
#define GCG_DECL_BRANCHNEWCOL(x)
#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONS(x)
#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF(x)

Macro Definition Documentation

◆ GCG_DECL_BRANCHACTIVEMASTER

#define GCG_DECL_BRANCHACTIVEMASTER ( x)
Value:
SCIP_VAR ** x
struct GCG_BranchData GCG_BRANCHDATA
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE

activation method for branchrule, called when a node in the master problem is activated, should perform changes to the current node's problem due to the branchdata

input:

  • gcg : GCG main data structure
  • branchdata : the branching data

Definition at line 70 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHACTIVEMASTER(), GCG_DECL_BRANCHACTIVEMASTER(), GCG_DECL_BRANCHACTIVEMASTER(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHDEACTIVEMASTER

#define GCG_DECL_BRANCHDEACTIVEMASTER ( x)
Value:

deactivation method for branchrule, called when a node in the master problem is deactivated, should undo changes to the current node's problem due to the branchdata

input:

  • gcg : GCG main data structure
  • branchdata : the branching data

Definition at line 79 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHDEACTIVEMASTER(), GCG_DECL_BRANCHDEACTIVEMASTER(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHPROPMASTER

#define GCG_DECL_BRANCHPROPMASTER ( x)
Value:
* result
enum SCIP_Result SCIP_RESULT

propagation method for branchrule, called when a node in the master problem is propagated, should perform propagation at the current node due to the branchdata

input:

  • gcg : GCG main data structure
  • branchdata : the branching data
  • node : the activated node
  • result : pointer to store the result of the propagation call

possible return values for *result:

  • SCIP_CUTOFF : the node is infeasible in the variable's bounds and can be cut off
  • SCIP_REDUCEDDOM : at least one domain reduction was found
  • SCIP_DIDNOTFIND : the propagator searched but did not find any domain reductions
  • SCIP_DIDNOTRUN : the propagator was skipped
  • SCIP_DELAYED : the propagator was skipped, but should be called again

Definition at line 98 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHPROPMASTER(), GCG_DECL_BRANCHPROPMASTER(), GCG_DECL_BRANCHPROPMASTER(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHMASTERSOLVED

#define GCG_DECL_BRANCHMASTERSOLVED ( x)
Value:
SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_Real newlowerbound)
#define SCIP_Real

method for branchrule, called when the master LP is solved at one node, can store pseudocosts for the branching decisions

input:

  • gcg : GCG main data structure
  • branchdata : the branching data
  • newlowerbound : the new local lower bound

Definition at line 109 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHMASTERSOLVED(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHDATADELETE

#define GCG_DECL_BRANCHDATADELETE ( x)
Value:
SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA** branchdata, SCIP_Bool origbranch, SCIP_Bool force)
#define SCIP_Bool

frees branching data of an origbranch constraint (called when the origbranch constraint is deleted)

input: gcg : GCG main data structure branchdata : pointer to the branching data to free origbranch : true iff an origbranch triggered this call force : branch data must be deleted if true

Definition at line 119 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHDATADELETE(), GCG_DECL_BRANCHDATADELETE(), GCG_DECL_BRANCHDATADELETE(), GCG_DECL_BRANCHDATADELETE(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHNEWCOL

#define GCG_DECL_BRANCHNEWCOL ( x)
Value:
SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_VAR* mastervar)
struct SCIP_Var SCIP_VAR

notify the branching rule that a new mastervariable was created while this node was active

input: gcg : GCG main data structure branchdata : the branching data mastervar : pointer to the new master variable

Definition at line 128 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHNEWCOL(), GCG_DECL_BRANCHNEWCOL(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHGETEXTENDEDMASTERCONS

#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONS ( x)
Value:
SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, GCG_EXTENDEDMASTERCONSDATA** extendedmasterconsdata)
struct GCG_ExtendedMasterConsData GCG_EXTENDEDMASTERCONSDATA

get the extendedmasterconsdata created by this branching rule, if any

input: gcg : GCG main data structure branchdata : the branching data

Definition at line 136 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHGETEXTENDEDMASTERCONS(), and GCGrelaxIncludeBranchrule().

◆ GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF

#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF ( x)
Value:
SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, GCG_EXTENDEDMASTERCONSDATA* extendedmasterconsdata, SCIP_VAR** solvars, SCIP_Real* solvals, int nsolvars, int probnr, GCG_COL* gcgcol, SCIP_Real* coef)
struct GCG_Col GCG_COL
Definition type_gcgcol.h:44

determine the coefficient of a column solution in the extended master cons

input: gcg : GCG data structure branchdata : branch data created by the branch rule extendedmasterconsdata : the extended master cons data solvars : array of column solution variables solvals : array of column solution values nsolvars : number of column solution variables and values probnr : the pricing problem that the column belongs to gcgcol : gcg column if available (or NULL) coef : the calculated coefficient

Definition at line 151 of file type_branchgcg.h.

Referenced by GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF(), and GCGrelaxIncludeBranchrule().

Typedef Documentation

◆ GCG_BRANCHDATA

branching data

Definition at line 49 of file type_branchgcg.h.

◆ GCG_BRANCHRULE

branching rule

Definition at line 50 of file type_branchgcg.h.

◆ GCG_BRANCHCONSDATA

branching cons data

Definition at line 51 of file type_branchgcg.h.

◆ GCG_BOUNDTYPE

Definition at line 61 of file type_branchgcg.h.

Enumeration Type Documentation

◆ GCG_BoundType

type of variable bound: lower or upper bound

Enumerator
GCG_BOUNDTYPE_LOWER 

lower bound

GCG_BOUNDTYPE_UPPER 

upper bound

GCG_BOUNDTYPE_FIXED 

variable fixed

GCG_BOUNDTYPE_NONE 

no bound

Definition at line 54 of file type_branchgcg.h.