Scippy

SCIP

Solving Constraint Integer Programs

type_lp.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-2020 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 type_lp.h
17  * @brief type definitions for LP management
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_TYPE_LP_H__
24 #define __SCIP_TYPE_LP_H__
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /** solution status after solving LP */
32 {
33  SCIP_LPSOLSTAT_NOTSOLVED = 0, /**< LP was not solved, no solution exists */
34  SCIP_LPSOLSTAT_OPTIMAL = 1, /**< LP was solved to optimality */
35  SCIP_LPSOLSTAT_INFEASIBLE = 2, /**< LP is primal infeasible */
36  SCIP_LPSOLSTAT_UNBOUNDEDRAY = 3, /**< LP has a primal unbounded ray */
37  SCIP_LPSOLSTAT_OBJLIMIT = 4, /**< objective limit was reached during optimization */
38  SCIP_LPSOLSTAT_ITERLIMIT = 5, /**< iteration limit was reached during optimization */
39  SCIP_LPSOLSTAT_TIMELIMIT = 6, /**< time limit was reached during optimization */
40  SCIP_LPSOLSTAT_ERROR = 7 /**< an error occured during optimization */
41 };
43 
44 /** type of variable bound: lower or upper bound */
46 {
47  SCIP_BOUNDTYPE_LOWER = 0, /**< lower bound */
48  SCIP_BOUNDTYPE_UPPER = 1 /**< upper bound */
49 };
51 
52 /** type of row side: left hand or right hand side */
54 {
55  SCIP_SIDETYPE_LEFT = 0, /**< left hand side */
56  SCIP_SIDETYPE_RIGHT = 1 /**< right hand side */
57 };
59 
60 /** type of origin of row */
62 {
63  SCIP_ROWORIGINTYPE_UNSPEC = 0, /**< unspecified origin of row */
64  SCIP_ROWORIGINTYPE_CONSHDLR = 1, /**< row created by a constraint handler */
65  SCIP_ROWORIGINTYPE_CONS = 2, /**< row created by a constraint */
66  SCIP_ROWORIGINTYPE_SEPA = 3, /**< row created by separator */
67  SCIP_ROWORIGINTYPE_REOPT = 4 /**< row created by reoptimization */
68 };
70 
71 /** type of LP algorithm */
73 {
74  SCIP_LPALGO_PRIMALSIMPLEX = 0, /**< primal simplex */
75  SCIP_LPALGO_DUALSIMPLEX = 1, /**< dual simplex */
76  SCIP_LPALGO_BARRIER = 2, /**< barrier algorithm */
77  SCIP_LPALGO_BARRIERCROSSOVER = 3 /**< barrier algorithm with crossover */
78 };
79 typedef enum SCIP_LPAlgo SCIP_LPALGO;
80 
81 typedef struct SCIP_ColSolVals SCIP_COLSOLVALS; /**< collected values of a column which depend on the LP solution */
82 typedef struct SCIP_RowSolVals SCIP_ROWSOLVALS; /**< collected values of a row which depend on the LP solution */
83 typedef struct SCIP_LpSolVals SCIP_LPSOLVALS; /**< collected values of the LP data which depend on the LP solution */
84 
85 /** column of an LP
86  *
87  * - \ref PublicColumnMethods "List of all available methods"
88  */
89 typedef struct SCIP_Col SCIP_COL;
90 
91 /** row of an LP
92  *
93  * - \ref PublicRowMethods "List of all available methods"
94  */
95 typedef struct SCIP_Row SCIP_ROW;
96 
97 /** LP structure
98  *
99  * - \ref PublicLPMethods "List of all available methods"
100  */
101 typedef struct SCIP_Lp SCIP_LP;
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif
enum SCIP_BoundType SCIP_BOUNDTYPE
Definition: type_lp.h:50
enum SCIP_LPAlgo SCIP_LPALGO
Definition: type_lp.h:79
enum SCIP_RowOriginType SCIP_ROWORIGINTYPE
Definition: type_lp.h:69
SCIP_RowOriginType
Definition: type_lp.h:61
enum SCIP_LPSolStat SCIP_LPSOLSTAT
Definition: type_lp.h:42
SCIP_LPAlgo
Definition: type_lp.h:72
SCIP_BoundType
Definition: type_lp.h:45
SCIP_SideType
Definition: type_lp.h:53
SCIP_LPSolStat
Definition: type_lp.h:31
enum SCIP_SideType SCIP_SIDETYPE
Definition: type_lp.h:58