Scippy

SCIP

Solving Constraint Integer Programs

polyscip_types.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program PolySCIP */
4 /* */
5 /* Copyright (C) 2012-2019 Konrad-Zuse-Zentrum */
6 /* fuer Informationstechnik Berlin */
7 /* */
8 /* PolySCIP is distributed under the terms of the ZIB Academic License. */
9 /* */
10 /* You should have received a copy of the ZIB Academic License */
11 /* along with PolySCIP; see the file LICENCE. */
12 /* */
13 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
14 
15 /**
16  * @file polyscip_types.h
17  * @brief General types used for PolySCIP
18  * @author Sebastian Schenker
19  *
20  */
21 
22 #ifndef POLYSCIP_SRC_POLYSCIP_TYPES_H_INCLUDED
23 #define POLYSCIP_SRC_POLYSCIP_TYPES_H_INCLUDED
24 
25 #include <string>
26 #include <iostream>
27 #include <ostream>
28 #include <utility>
29 #include <vector>
30 #include "scip/def.h"
31 
32 namespace polyscip {
33 
34  using ValueType = SCIP_Real; ///< Type for computed values
35  using OutcomeType = std::vector<ValueType>; ///< Type for points, rays in objective space
36  using SolType = std::vector< std::pair<std::string, ValueType> >; ///< Type for solutions in feasible space
37  using WeightType = std::vector<ValueType>; ///< Type for weight vectors
38  using Result = std::pair<SolType, OutcomeType>; ///< A result comprises of a solution/ray in feasible space and a corresponding outcome in objective space
39  using ResultContainer = std::vector<Result>; ///< Container type for results
40 
41 }
42 
43 #endif //POLYSCIP_SRC_POLYSCIP_TYPES_H_INCLUDED
std::vector< ValueType > WeightType
Type for weight vectors.
SCIP_Real ValueType
Type for computed values.
std::vector< ValueType > OutcomeType
Type for points, rays in objective space.
std::pair< SolType, OutcomeType > Result
A result comprises of a solution/ray in feasible space and a corresponding outcome in objective space...
std::vector< Result > ResultContainer
Container type for results.
#define SCIP_Real
Definition: def.h:157
std::vector< std::pair< std::string, ValueType > > SolType
Type for solutions in feasible space.
common defines and data types used in all packages of SCIP