Scippy

GCG

Branch-and-Price & Column Generation for Everyone

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)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata)
 
#define GCG_DECL_BRANCHDEACTIVEMASTER(x)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata)
 
#define GCG_DECL_BRANCHPROPMASTER(x)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_RESULT* result)
 
#define GCG_DECL_BRANCHMASTERSOLVED(x)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_Real newlowerbound)
 
#define GCG_DECL_BRANCHDATADELETE(x)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA** branchdata, SCIP_Bool origbranch, SCIP_Bool force)
 
#define GCG_DECL_BRANCHNEWCOL(x)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_VAR* mastervar)
 
#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONS(x)   SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, GCG_EXTENDEDMASTERCONSDATA** extendedmasterconsdata)
 
#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF(x)   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)
 

Typedefs

typedef struct GCG_BranchData GCG_BRANCHDATA
 
typedef struct GCG_Branchrule GCG_BRANCHRULE
 
typedef struct GCG_BranchConsData GCG_BRANCHCONSDATA
 
typedef enum GCG_BoundType GCG_BOUNDTYPE
 

Enumerations

enum  GCG_BoundType {
  GCG_BOUNDTYPE_LOWER = 0 ,
  GCG_BOUNDTYPE_UPPER = 1 ,
  GCG_BOUNDTYPE_FIXED = 2 ,
  GCG_BOUNDTYPE_NONE = 3
}
 

Macro Definition Documentation

◆ GCG_DECL_BRANCHACTIVEMASTER

#define GCG_DECL_BRANCHACTIVEMASTER (   x)    SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata)

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.

◆ GCG_DECL_BRANCHDEACTIVEMASTER

#define GCG_DECL_BRANCHDEACTIVEMASTER (   x)    SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata)

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.

◆ GCG_DECL_BRANCHPROPMASTER

#define GCG_DECL_BRANCHPROPMASTER (   x)    SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_RESULT* 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.

◆ GCG_DECL_BRANCHMASTERSOLVED

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

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.

◆ GCG_DECL_BRANCHDATADELETE

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

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.

◆ GCG_DECL_BRANCHNEWCOL

#define GCG_DECL_BRANCHNEWCOL (   x)    SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, SCIP_VAR* mastervar)

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.

◆ GCG_DECL_BRANCHGETEXTENDEDMASTERCONS

#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONS (   x)    SCIP_RETCODE x (GCG* gcg, GCG_BRANCHDATA* branchdata, GCG_EXTENDEDMASTERCONSDATA** 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.

◆ GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF

#define GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF (   x)    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)

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.

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.