Scippy

SCIP

Solving Constraint Integer Programs

presol_symmetry.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-2018 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 presol_symmetry.h
17  * @ingroup PRESOLVERS
18  * @brief presolver for storing symmetry information about current problem
19  * @author Marc Pfetsch
20  * @author Thomas Rehn
21  */
22 
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
24 
25 #ifndef __SCIP_PRESOL_SYMMETRY_H_
26 #define __SCIP_PRESOL_SYMMETRY_H_
27 
28 #include <scip/scip.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #include <symmetry/type_symmetry.h>
35 
36 /** include symmetry presolver */
37 extern
39  SCIP* scip /**< SCIP data structure */
40  );
41 
42 /** return symmetry group generators */
43 extern
45  SCIP* scip, /**< SCIP data structure */
46  int* npermvars, /**< pointer to store number of variables for permutations */
47  SCIP_VAR*** permvars, /**< pointer to store variables on which permutations act */
48  int* nperms, /**< pointer to store number of permutations */
49  int*** perms, /**< pointer to store permutation generators as (nperms x npermvars) matrix */
50  SCIP_Real* log10groupsize /**< pointer to store log10 of group size (or NULL) */
51  );
52 
53 /** return objective coefficients of permuted variables at time of symmetry computation */
54 extern
56  SCIP* scip, /**< SCIP data structure */
57  SCIP_Real** permvarsobj /**< pointer to store objective coefficients of permuted variables (NULL if not available) */
58  );
59 
60 /** register that a specific symmetry is needed */
61 extern
63  SCIP* scip, /**< SCIP data structure */
64  SYM_HANDLETYPE symtype, /**< type of symmetry handling of callee */
65  SYM_SPEC type, /**< variable types the callee is interested in */
66  SYM_SPEC fixedtype /**< variable types that callee wants to have fixed */
67  );
68 
69 /** return at what time symmetry is computed (before or after presolving) */
70 extern
72  SCIP* scip, /**< SCIP data structure */
73  SCIP_Bool* afterpresolve /**< pointer to store whether symmetry is computed in stage initpre or exitpre */
74  );
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif
SCIP_RETCODE SCIPgetGeneratorsSymmetry(SCIP *scip, int *npermvars, SCIP_VAR ***permvars, int *nperms, int ***perms, SCIP_Real *log10groupsize)
SCIP_RETCODE SCIPincludePresolSymmetry(SCIP *scip)
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
SCIP_RETCODE SCIPgetTimingSymmetry(SCIP *scip, SCIP_Bool *afterpresolve)
#define SCIP_Bool
Definition: def.h:61
uint32_t SYM_SPEC
Definition: type_symmetry.h:37
SCIP_RETCODE SCIPregisterSymmetry(SCIP *scip, SYM_HANDLETYPE symtype, SYM_SPEC type, SYM_SPEC fixedtype)
SCIP_RETCODE SCIPgetPermvarsObjSymmetry(SCIP *scip, SCIP_Real **permvarsobj)
type definitions for symmetry computations
#define SCIP_Real
Definition: def.h:149
uint32_t SYM_HANDLETYPE
Definition: type_symmetry.h:56
SCIP callable library.