Scippy

SCIP

Solving Constraint Integer Programs

compute_symmetry_none.cpp
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 compute_symmetry_none.cpp
17  * @brief interface for no symmetry computations
18  * @author Marc Pfetsch
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #include "compute_symmetry.h"
24 
25 /** return whether symmetry can be computed */
27 {
28  return FALSE;
29 }
30 
31 /** return name of external program used to compute generators */
32 const char* SYMsymmetryGetName(void)
33 {
34  return "none";
35 }
36 
37 /** return description of external program used to compute generators */
38 const char* SYMsymmetryGetDesc(void)
39 {
40  return "";
41 }
42 
43 /** compute generators of symmetry group */ /*lint -e{715}*/
45  SCIP* scip, /**< SCIP pointer */
46  int maxgenerators, /**< maximal number of generators constructed (= 0 if unlimited) */
47  SYM_MATRIXDATA* matrixdata, /**< data for MIP matrix */
48  int* nperms, /**< pointer to store number of permutations */
49  int* nmaxperms, /**< pointer to store maximal number of permutations (needed for freeing storage) */
50  int*** perms, /**< pointer to store permutation generators as (nperms x npermvars) matrix */
51  SCIP_Real* log10groupsize /**< pointer to store size of group */
52  )
53 { /*lint --e{715}*/
54  assert( scip != NULL );
55  assert( matrixdata != NULL );
56  assert( nperms != NULL );
57  assert( nmaxperms != NULL );
58  assert( perms != NULL );
59  assert( log10groupsize != NULL );
60 
61  /* init */
62  *nperms = 0;
63  *nmaxperms = 0;
64  *perms = NULL;
65  *log10groupsize = 0;
66 
67  return SCIP_OKAY;
68 }
const char * SYMsymmetryGetDesc(void)
#define FALSE
Definition: def.h:73
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
SCIP_Bool SYMcanComputeSymmetry(void)
interface for symmetry computations
#define NULL
Definition: lpi_spx1.cpp:155
#define SCIP_Bool
Definition: def.h:70
#define SCIP_Real
Definition: def.h:163
SCIP_RETCODE SYMcomputeSymmetryGenerators(SCIP *scip, int maxgenerators, SYM_MATRIXDATA *matrixdata, int *nperms, int *nmaxperms, int ***perms, SCIP_Real *log10groupsize)
const char * SYMsymmetryGetName(void)