Scippy

SCIP

Solving Constraint Integer Programs

reader_gms.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-2017 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 reader_gms.h
17  * @ingroup FILEREADERS
18  * @brief GAMS file reader and writer
19  * @author Ambros Gleixner
20  *
21  * This reader writes a CIP in GAMS format.
22  * It can write all kinds of linear and nonlinear constraints (as occurring in MINLPs) and indicator constraints.
23  *
24  * If SCIP has been compiled with GAMS=true, it can also read GAMS model instances.
25  * This requires a working GAMS system.
26  */
27 
28 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
29 
30 #ifndef __SCIP_READER_GMS_H__
31 #define __SCIP_READER_GMS_H__
32 
33 
34 #include "scip/scip.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 /** includes the gms file reader into SCIP
41  *
42  * @ingroup FileReaderIncludes
43  */
44 extern
46  SCIP* scip /**< SCIP data structure */
47  );
48 
49 /**@addtogroup FILEREADERS
50  *
51  * @{
52  */
53 
54 /** writes problem to file */
55 extern
57  SCIP* scip, /**< SCIP data structure */
58  FILE* file, /**< output file, or NULL if standard output should be used */
59  const char* name, /**< problem name */
60  SCIP_Bool transformed, /**< TRUE iff problem is the transformed problem */
61  SCIP_OBJSENSE objsense, /**< objective sense */
62  SCIP_Real objscale, /**< scalar applied to objective function; external objective value is
63  * extobj = objsense * objscale * (intobj + objoffset) */
64  SCIP_Real objoffset, /**< objective offset from bound shifting and fixing */
65  SCIP_VAR** vars, /**< array with active variables ordered binary, integer, implicit, continuous */
66  int nvars, /**< number of active variables in the problem */
67  int nbinvars, /**< number of binary variables */
68  int nintvars, /**< number of general integer variables */
69  int nimplvars, /**< number of implicit integer variables */
70  int ncontvars, /**< number of continuous variables */
71  SCIP_CONS** conss, /**< array with constraints of the problem */
72  int nconss, /**< number of constraints in the problem */
73  SCIP_RESULT* result /**< pointer to store the result of the file writing call */
74  );
75 
76 /* @} */
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif
enum SCIP_Result SCIP_RESULT
Definition: type_result.h:52
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
SCIP_RETCODE SCIPwriteGms(SCIP *scip, FILE *file, const char *name, SCIP_Bool transformed, SCIP_OBJSENSE objsense, SCIP_Real objscale, SCIP_Real objoffset, SCIP_VAR **vars, int nvars, int nbinvars, int nintvars, int nimplvars, int ncontvars, SCIP_CONS **conss, int nconss, SCIP_RESULT *result)
Definition: reader_gms.c:2219
SCIP_RETCODE SCIPincludeReaderGms(SCIP *scip)
Definition: reader_gms.c:2176
#define SCIP_Bool
Definition: def.h:61
enum SCIP_Objsense SCIP_OBJSENSE
Definition: type_prob.h:41
#define SCIP_Real
Definition: def.h:145
SCIP callable library.