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-2014 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 email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file struct_pricer.h
17  * @brief datastructures for variable pricers
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_STRUCT_PRICER_H__
24 #define __SCIP_STRUCT_PRICER_H__
25 
26 
27 #include "scip/def.h"
28 #include "scip/type_clock.h"
29 #include "scip/type_pricer.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /** variable pricers data */
37 {
38  char* name; /**< name of variable pricer */
39  char* desc; /**< description of variable pricer */
40  SCIP_DECL_PRICERCOPY ((*pricercopy)); /**< copy method of pricer or NULL if you don't want to copy your plugin into sub-SCIPs */
41  SCIP_DECL_PRICERFREE ((*pricerfree)); /**< destructor of variable pricer */
42  SCIP_DECL_PRICERINIT ((*pricerinit)); /**< initialize variable pricer */
43  SCIP_DECL_PRICEREXIT ((*pricerexit)); /**< deinitialize variable pricer */
44  SCIP_DECL_PRICERINITSOL((*pricerinitsol));/**< solving process initialization method of variable pricer */
45  SCIP_DECL_PRICEREXITSOL((*pricerexitsol));/**< solving process deinitialization method of variable pricer */
46  SCIP_DECL_PRICERREDCOST((*pricerredcost));/**< reduced cost pricing method of variable pricer for feasible LPs */
47  SCIP_DECL_PRICERFARKAS((*pricerfarkas)); /**< Farkas pricing method of variable pricer for infeasible LPs */
48  SCIP_PRICERDATA* pricerdata; /**< variable pricers local data */
49  SCIP_CLOCK* setuptime; /**< time spend for setting up this pricer for the next stages */
50  SCIP_CLOCK* pricerclock; /**< pricer execution time */
51  int priority; /**< priority of the variable pricer */
52  int ncalls; /**< number of times, this pricer was called */
53  int nvarsfound; /**< number of variables priced in found so far by this pricer */
54  SCIP_Bool delay; /**< should the pricer be delayed until no other pricers or already existing
55  * problem variables with negative reduced costs are found */
56  SCIP_Bool active; /**< is variable pricer in use for the current problem? */
57  SCIP_Bool initialized; /**< is variable pricer initialized? */
58 };
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif
65