Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SCIP 9.2.0
SCIP 8.1.0
SCIP 7.0.3
SCIP 6.0.2
SCIP 5.0.1
SCIP 4.0.1
SCIP 3.2.1
SCIP
Solving Constraint Integer Programs
Overview
Files
Plugin Types
Interfaces
Examples
How To
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
scip-repo
src
scip
pub_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 pub_pricer.h
17
* @ingroup PUBLICMETHODS
18
* @brief public methods 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_PUB_PRICER_H__
25
#define __SCIP_PUB_PRICER_H__
26
27
28
#include "
scip/def.h
"
29
#include "
scip/type_misc.h
"
30
#include "
scip/type_pricer.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
/** compares two pricers w. r. to their priority */
37
extern
38
SCIP_DECL_SORTPTRCOMP
(SCIPpricerComp);
39
40
/** comparison method for sorting pricers w.r.t. to their name */
41
extern
42
SCIP_DECL_SORTPTRCOMP
(SCIPpricerCompName);
43
44
/** gets user data of variable pricer */
45
extern
46
SCIP_PRICERDATA
*
SCIPpricerGetData
(
47
SCIP_PRICER
* pricer
/**< variable pricer */
48
);
49
50
/** sets user data of variable pricer; user has to free old data in advance! */
51
extern
52
void
SCIPpricerSetData
(
53
SCIP_PRICER
* pricer,
/**< variable pricer */
54
SCIP_PRICERDATA
* pricerdata
/**< new variable pricer user data */
55
);
56
57
/** gets name of variable pricer */
58
extern
59
const
char
*
SCIPpricerGetName
(
60
SCIP_PRICER
* pricer
/**< variable pricer */
61
);
62
63
/** gets description of variable pricer */
64
extern
65
const
char
*
SCIPpricerGetDesc
(
66
SCIP_PRICER
* pricer
/**< variable pricer */
67
);
68
69
/** gets priority of variable pricer */
70
extern
71
int
SCIPpricerGetPriority
(
72
SCIP_PRICER
* pricer
/**< variable pricer */
73
);
74
75
/** gets the number of times, the pricer was called and tried to find a variable with negative reduced costs */
76
extern
77
int
SCIPpricerGetNCalls
(
78
SCIP_PRICER
* pricer
/**< variable pricer */
79
);
80
81
/** gets the number of variables with negative reduced costs found by this pricer */
82
extern
83
int
SCIPpricerGetNVarsFound
(
84
SCIP_PRICER
* pricer
/**< variable pricer */
85
);
86
87
/** gets time in seconds used in this pricer for setting up for next stages */
88
extern
89
SCIP_Real
SCIPpricerGetSetupTime
(
90
SCIP_PRICER
* pricer
/**< variable pricer */
91
);
92
93
/** gets time in seconds used in this pricer */
94
extern
95
SCIP_Real
SCIPpricerGetTime
(
96
SCIP_PRICER
* pricer
/**< variable pricer */
97
);
98
99
/** returns whether the given pricer is in use in the current problem */
100
extern
101
SCIP_Bool
SCIPpricerIsActive
(
102
SCIP_PRICER
* pricer
/**< variable pricer */
103
);
104
105
/** returns whether the pricer should be delayed until no other pricer finds a new variable */
106
extern
107
SCIP_Bool
SCIPpricerIsDelayed
(
108
SCIP_PRICER
* pricer
/**< variable pricer */
109
);
110
111
/** is variable pricer initialized? */
112
extern
113
SCIP_Bool
SCIPpricerIsInitialized
(
114
SCIP_PRICER
* pricer
/**< variable pricer */
115
);
116
117
#ifdef __cplusplus
118
}
119
#endif
120
121
#endif
122