Scippy

SCIP

Solving Constraint Integer Programs

struct_pricer.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2022 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_pricer.h
17  * @ingroup INTERNALAPI
18  * @brief data structures for variable pricers
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_STRUCT_PRICER_H__
25 #define __SCIP_STRUCT_PRICER_H__
26 
27 
28 #include "scip/def.h"
29 #include "scip/type_clock.h"
30 #include "scip/type_pricer.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /** variable pricers data */
38 {
39  char* name; /**< name of variable pricer */
40  char* desc; /**< description of variable pricer */
41  SCIP_DECL_PRICERCOPY ((*pricercopy)); /**< copy method of pricer or NULL if you don't want to copy your plugin into sub-SCIPs */
42  SCIP_DECL_PRICERFREE ((*pricerfree)); /**< destructor of variable pricer */
43  SCIP_DECL_PRICERINIT ((*pricerinit)); /**< initialize variable pricer */
44  SCIP_DECL_PRICEREXIT ((*pricerexit)); /**< deinitialize variable pricer */
45  SCIP_DECL_PRICERINITSOL((*pricerinitsol));/**< solving process initialization method of variable pricer */
46  SCIP_DECL_PRICEREXITSOL((*pricerexitsol));/**< solving process deinitialization method of variable pricer */
47  SCIP_DECL_PRICERREDCOST((*pricerredcost));/**< reduced cost pricing method of variable pricer for feasible LPs */
48  SCIP_DECL_PRICERFARKAS((*pricerfarkas)); /**< Farkas pricing method of variable pricer for infeasible LPs */
49  SCIP_PRICERDATA* pricerdata; /**< variable pricers local data */
50  SCIP_CLOCK* setuptime; /**< time spend for setting up this pricer for the next stages */
51  SCIP_CLOCK* pricerclock; /**< pricer execution time */
52  int priority; /**< priority of the variable pricer */
53  int ncalls; /**< number of times, this pricer was called */
54  int nvarsfound; /**< number of variables priced in found so far by this pricer */
55  SCIP_Bool delay; /**< should the pricer be delayed until no other pricers or already existing
56  * problem variables with negative reduced costs are found */
57  SCIP_Bool active; /**< is variable pricer in use for the current problem? */
58  SCIP_Bool initialized; /**< is variable pricer initialized? */
59 };
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif
SCIP_DECL_PRICERCOPY((*pricercopy))
SCIP_Bool delay
Definition: struct_pricer.h:55
SCIP_DECL_PRICERINIT((*pricerinit))
type definitions for variable pricers
SCIP_CLOCK * setuptime
Definition: struct_pricer.h:50
SCIP_DECL_PRICEREXIT((*pricerexit))
SCIP_DECL_PRICEREXITSOL((*pricerexitsol))
SCIP_CLOCK * pricerclock
Definition: struct_pricer.h:51
SCIP_DECL_PRICERINITSOL((*pricerinitsol))
SCIP_PRICERDATA * pricerdata
Definition: struct_pricer.h:49
SCIP_Bool initialized
Definition: struct_pricer.h:58
#define SCIP_Bool
Definition: def.h:84
type definitions for clocks and timing issues
SCIP_DECL_PRICERFREE((*pricerfree))
SCIP_Bool active
Definition: struct_pricer.h:57
SCIP_DECL_PRICERFARKAS((*pricerfarkas))
struct SCIP_PricerData SCIP_PRICERDATA
Definition: type_pricer.h:36
common defines and data types used in all packages of SCIP
SCIP_DECL_PRICERREDCOST((*pricerredcost))