Scippy

SCIP

Solving Constraint Integer Programs

struct_cuts.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-2024 Zuse Institute Berlin (ZIB) */
7 /* */
8 /* Licensed under the Apache License, Version 2.0 (the "License"); */
9 /* you may not use this file except in compliance with the License. */
10 /* You may obtain a copy of the License at */
11 /* */
12 /* http://www.apache.org/licenses/LICENSE-2.0 */
13 /* */
14 /* Unless required by applicable law or agreed to in writing, software */
15 /* distributed under the License is distributed on an "AS IS" BASIS, */
16 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17 /* See the License for the specific language governing permissions and */
18 /* limitations under the License. */
19 /* */
20 /* You should have received a copy of the Apache-2.0 license */
21 /* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22 /* */
23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24 
25 /**@file struct_cuts.h
26  * @ingroup PUBLICCOREAPI
27  * @brief struct definitions for cuts
28  * @author Leona Gottwald
29  *
30  */
31 
32 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
33 
34 #ifndef __SCIP_STRUCT_CUTS_H__
35 #define __SCIP_STRUCT_CUTS_H__
36 
37 #include "scip/def.h"
38 #include "scip/dbldblarith.h"
39 
41 {
42  SCIP_Real* vals; /**< non-zero coefficients of the cut row */
43  int* inds; /**< problem indices of variables with a non-zero coefficient in the cut row */
44  int* rowsinds; /**< lpposition of rows that have been added to the cutrow */
45  int* slacksign; /**< slacksign of rows that have been added to the cutrow */
46  SCIP_Real* rowweights; /**< weights of rows that have been added to the cutrow */
47  QUAD_MEMBER(SCIP_Real rhs); /**< right hand side of the cut row */
48  int nnz; /**< number of non-zeros in the cut row */
49  int nrows; /**< number of rows that have been added to the cutrow */
50  int rowssize; /**< size of the row and slacksign array */
51  int rank; /**< rank of the cut row */
52  SCIP_Bool local; /**< is the cut row only valid locally? */
53 };
54 
55 #endif
QUAD_MEMBER(SCIP_Real rhs)
int * slacksign
Definition: struct_cuts.h:45
defines macros for basic operations in double-double arithmetic giving roughly twice the precision of...
int * rowsinds
Definition: struct_cuts.h:44
SCIP_Real * rowweights
Definition: struct_cuts.h:46
#define SCIP_Bool
Definition: def.h:91
SCIP_Real * vals
Definition: struct_cuts.h:42
#define SCIP_Real
Definition: def.h:173
common defines and data types used in all packages of SCIP
SCIP_Bool local
Definition: struct_cuts.h:52