Detailed Description
type definitions for the pricing callback plugin
This file defines the interface for pricing callback plugins implemented in C.
Definition in file type_pricingcb.h.
#include "scip/def.h"#include "scip/type_pricer.h"#include "scip/type_result.h"#include "gcg/type_pricetype.h"#include "gcg/type_gcg.h"Go to the source code of this file.
Macros | |
| #define | GCG_DECL_PRICINGCBCOPY(x) |
| #define | GCG_DECL_PRICINGCBFREE(x) |
| #define | GCG_DECL_PRICINGCBINIT(x) |
| #define | GCG_DECL_PRICINGCBEXIT(x) |
| #define | GCG_DECL_PRICINGCBINITSOL(x) |
| #define | GCG_DECL_PRICINGCBEXITSOL(x) |
| #define | GCG_DECL_PRICINGCBPREPRICING(x) |
| #define | GCG_DECL_PRICINGCBPOSTPRICING(x) |
Macro Definition Documentation
◆ GCG_DECL_PRICINGCBCOPY
| #define GCG_DECL_PRICINGCBCOPY | ( | x | ) |
copy method for the pricing callback plugins (called when SCIP copies plugins)
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
Definition at line 63 of file type_pricingcb.h.
◆ GCG_DECL_PRICINGCBFREE
| #define GCG_DECL_PRICINGCBFREE | ( | x | ) |
destructor of the pricing callback to free user data (called when SCIP is exiting)
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
Definition at line 71 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricingcbCreate(), and GCGpricingcbSetFree().
◆ GCG_DECL_PRICINGCBINIT
| #define GCG_DECL_PRICINGCBINIT | ( | x | ) |
initialization method of the pricing callback (called after problem was transformed)
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
Definition at line 79 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricingcbCreate(), and GCGpricingcbSetInit().
◆ GCG_DECL_PRICINGCBEXIT
| #define GCG_DECL_PRICINGCBEXIT | ( | x | ) |
deinitialization method of the pricing callback (called before transformed problem is freed)
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
Definition at line 87 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricingcbCreate(), and GCGpricingcbSetExit().
◆ GCG_DECL_PRICINGCBINITSOL
| #define GCG_DECL_PRICINGCBINITSOL | ( | x | ) |
solving process initialization method of the pricing callback (called when branch and bound process is about to begin)
This method is called when the presolving was finished and the branch and bound process is about to begin.
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
Definition at line 97 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricingcbCreate(), and GCGpricingcbSetInitsol().
◆ GCG_DECL_PRICINGCBEXITSOL
| #define GCG_DECL_PRICINGCBEXITSOL | ( | x | ) |
solving process deinitialization method of the pricing callback (called before branch and bound process data is freed)
This method is called before the branch and bound process is freed. The pricing callback should use this call to clean up its branch and bound data.
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
Definition at line 108 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricingcbCreate(), and GCGpricingcbSetExitsol().
◆ GCG_DECL_PRICINGCBPREPRICING
| #define GCG_DECL_PRICINGCBPREPRICING | ( | x | ) |
the pre-pricing method of the pricing callback technique
This method is called immediately before the pricing is performed in the GCG pricer. At this point, it is possible to modify the solving data is used within the pricing for new variables. Any data that is modified should be reverted in the post-pricing method.
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
- pricer : the pricer structure
- type : the pricing type, either farkas or reduced cost pricing
- abort : should the pricing be aborted. Care must be taken when setting this flag, since aborting the pricing may lead to early branching and sub-optimal solution.
- result : pointer to store the result of the pre-pricing method
possible return values for *result (if more than one applies, the first in the list should be used):
- SCIP_DIDNOTRUN : if the pre-pricing method was not run.
- SCIP_SUCCESS : the pre-pricing method was executed successfully.
Definition at line 129 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCG_DECL_PRICINGCBPREPRICING(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), and GCGpricingcbCreate().
◆ GCG_DECL_PRICINGCBPOSTPRICING
| #define GCG_DECL_PRICINGCBPOSTPRICING | ( | x | ) |
the post-pricing method of the pricing callback technique
This method is called immediately after the pricing is performed in the GCG pricer. This method should be used to revert any changes made to in the pre-pricing method.
input:
- gcg : GCG data structure
- pricingcb : the pricing callback structure
- pricer : the pricer structure
- type : the pricing type, either farkas or reduced cost pricing
- result : pointer to store the result of the pre-pricing method
possible return values for *result (if more than one applies, the first in the list should be used):
- SCIP_DIDNOTRUN : if the post-pricing method was not run.
- SCIP_SUCCESS : the post-pricing method was executed successfully.
Definition at line 148 of file type_pricingcb.h.
Referenced by doPricingcbCreate(), GCG_DECL_PRICINGCBPOSTPRICING(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), and GCGpricingcbCreate().
Typedef Documentation
◆ GCG_PRICINGCB
| typedef struct GCG_Pricingcb GCG_PRICINGCB |
the pricing callback structure
Definition at line 53 of file type_pricingcb.h.
◆ GCG_PRICINGCBDATA
| typedef struct GCG_PricingcbData GCG_PRICINGCBDATA |
locally defined pricing callback data
Definition at line 54 of file type_pricingcb.h.