Detailed Description
type definitions for branching rules in GCG projects
Definition in file type_branchgcg.h.
#include "scip/def.h"#include "scip/type_result.h"#include "scip/type_scip.h"#include "gcg/type_extendedmasterconsdata.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 | ) |
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 | ) |
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 | ) |
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 | ) |
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 | ) |
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 | ) |
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 | ) |
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 | ) |
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
| typedef struct GCG_BranchData GCG_BRANCHDATA |
branching data
Definition at line 49 of file type_branchgcg.h.
◆ GCG_BRANCHRULE
| typedef struct GCG_Branchrule GCG_BRANCHRULE |
branching rule
Definition at line 50 of file type_branchgcg.h.
◆ GCG_BRANCHCONSDATA
| typedef struct GCG_BranchConsData GCG_BRANCHCONSDATA |
branching cons data
Definition at line 51 of file type_branchgcg.h.
◆ GCG_BOUNDTYPE
| typedef enum GCG_BoundType GCG_BOUNDTYPE |
Definition at line 61 of file type_branchgcg.h.
Enumeration Type Documentation
◆ GCG_BoundType
| enum 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.