Detailed Description
constraint handler for enforcing integrality of the transferred master solution in the original problem
Definition in file cons_integralorig.c.
#include <assert.h>#include <string.h>#include "gcg/cons_integralorig.h"#include "gcg/pricer_gcg.h"#include "gcg/cons_masterbranch.h"#include "gcg/pub_gcgvar.h"#include "scip/struct_branch.h"#include "gcg/relax_gcg.h"#include "gcg/gcg.h"#include "gcg/branch_orig.h"Go to the source code of this file.
Data Structures | |
| struct | SCIP_ConshdlrData |
Macros | |
| #define | CONSHDLR_NAME "integralorig" |
| #define | CONSHDLR_DESC "integrality constraint" |
| #define | CONSHDLR_ENFOPRIORITY 1000 |
| #define | CONSHDLR_CHECKPRIORITY 1000 |
| #define | CONSHDLR_EAGERFREQ -1 |
| #define | CONSHDLR_NEEDSCONS FALSE |
Functions | |
| SCIP_RETCODE | GCGconsIntegralorigAddBranchrule (GCG *gcg, SCIP_BRANCHRULE *branchrule) |
| static void | sortBranchrules (SCIP_BRANCHRULE **branchrules, int nbranchrules) |
| static | SCIP_DECL_CONSENFOLP (consEnfolpIntegralOrig) |
| static | SCIP_DECL_CONSENFOPS (consEnfopsIntegralOrig) |
| static | SCIP_DECL_CONSCHECK (consCheckIntegralOrig) |
| static | SCIP_DECL_CONSLOCK (consLockIntegralOrig) |
| static | SCIP_DECL_CONSFREE (consFreeIntegralOrig) |
| SCIP_RETCODE | GCGincludeConshdlrIntegralOrig (GCG *gcg) |
Macro Definition Documentation
◆ CONSHDLR_NAME
| #define CONSHDLR_NAME "integralorig" |
Definition at line 51 of file cons_integralorig.c.
◆ CONSHDLR_DESC
| #define CONSHDLR_DESC "integrality constraint" |
Definition at line 52 of file cons_integralorig.c.
◆ CONSHDLR_ENFOPRIORITY
| #define CONSHDLR_ENFOPRIORITY 1000 |
priority of the constraint handler for constraint enforcing
Definition at line 53 of file cons_integralorig.c.
◆ CONSHDLR_CHECKPRIORITY
| #define CONSHDLR_CHECKPRIORITY 1000 |
priority of the constraint handler for checking feasibility
Definition at line 54 of file cons_integralorig.c.
◆ CONSHDLR_EAGERFREQ
| #define CONSHDLR_EAGERFREQ -1 |
frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only
Definition at line 55 of file cons_integralorig.c.
◆ CONSHDLR_NEEDSCONS
| #define CONSHDLR_NEEDSCONS FALSE |
should the constraint handler be skipped, if no constraints are available?
Definition at line 57 of file cons_integralorig.c.
Function Documentation
◆ GCGconsIntegralorigAddBranchrule()
| SCIP_RETCODE GCGconsIntegralorigAddBranchrule | ( | GCG * | gcg, |
| SCIP_BRANCHRULE * | branchrule ) |
insert branchrule in constraint handler data
Definition at line 69 of file cons_integralorig.c.
References assert(), SCIP_ConshdlrData::branchrules, CONSHDLR_NAME, GCGconsIntegralorigAddBranchrule(), GCGgetMasterprob(), masterprob, SCIP_ConshdlrData::nbranchrules, and SCIP_CALL().
Referenced by GCGconsIntegralorigAddBranchrule(), and GCGrelaxIncludeBranchrule().
◆ sortBranchrules()
|
static |
sort branchrules with respect to priority
Definition at line 106 of file cons_integralorig.c.
References assert(), i, and sortBranchrules().
Referenced by SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), and sortBranchrules().
◆ SCIP_DECL_CONSENFOLP()
|
static |
constraint enforcing method of constraint handler for LP solutions
todo handle bool allowaddcons; here default TRUE
Definition at line 145 of file cons_integralorig.c.
References assert(), SCIP_ConshdlrData::branchrules, CONSHDLR_NAME, SCIP_ConshdlrData::gcg, GCGgetOrigprob(), GCGrelaxIsOrigSolFeasible(), i, SCIP_ConshdlrData::nbranchrules, origprob, result, SCIP_CALL(), SCIPdebugMessage(), and sortBranchrules().
◆ SCIP_DECL_CONSENFOPS()
|
static |
constraint enforcing method of constraint handler for pseudo solutions
todo handle bool allowaddcons; here default TRUE
Definition at line 216 of file cons_integralorig.c.
References assert(), SCIP_ConshdlrData::branchrules, CONSHDLR_NAME, SCIP_ConshdlrData::gcg, GCGgetOrigprob(), i, SCIP_ConshdlrData::nbranchrules, origprob, result, SCIP_CALL(), and sortBranchrules().
◆ SCIP_DECL_CONSCHECK()
|
static |
feasibility check method of constraint handler for integral solutions
Definition at line 270 of file cons_integralorig.c.
References assert(), CONSHDLR_NAME, SCIP_ConshdlrData::gcg, GCGgetOrigprob(), GCGtransformMastersolToOrigsol(), GCGvarIsOriginal(), origprob, result, SCIP_CALL(), SCIPdebugMessage(), sol, and solval.
◆ SCIP_DECL_CONSLOCK()
|
static |
variable rounding lock method of constraint handler
Definition at line 347 of file cons_integralorig.c.
◆ SCIP_DECL_CONSFREE()
|
static |
destructor of constraint handler to free constraint handler data (called when SCIP is exiting)
Definition at line 354 of file cons_integralorig.c.
References assert(), SCIP_ConshdlrData::branchrules, CONSHDLR_NAME, SCIP_ConshdlrData::nbranchrules, SCIP_DECL_CONSFREE(), SCIPdebugMessage(), and SCIPfreeMemory().
Referenced by SCIP_DECL_CONSFREE(), SCIP_DECL_CONSFREE(), and SCIP_DECL_CONSFREE().
◆ GCGincludeConshdlrIntegralOrig()
| SCIP_RETCODE GCGincludeConshdlrIntegralOrig | ( | GCG * | gcg | ) |
creates the handler for integrality constraint and includes it in SCIP
creates the handler for the integrality constraint and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 387 of file cons_integralorig.c.
References assert(), SCIP_ConshdlrData::branchrules, CONSHDLR_CHECKPRIORITY, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, SCIP_ConshdlrData::gcg, GCGgetMasterprob(), GCGincludeConshdlrIntegralOrig(), masterprob, SCIP_ConshdlrData::nbranchrules, and SCIP_CALL().
Referenced by GCGincludeConshdlrIntegralOrig(), and GCGincludeMasterPlugins().