Scippy

SCIP

Solving Constraint Integer Programs

reader_ppm.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-2023 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 reader_ppm.h
26  * @ingroup FILEREADERS
27  * @brief file writer for portable pixmap file format (PPM), open with common graphic viewer programs (e.g. xview)
28  * @author Tobias Achterberg
29  * @author Michael Winkler
30  */
31 
32 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
33 
34 #ifndef __SCIP_READER_PPM_H__
35 #define __SCIP_READER_PPM_H__
36 
37 #include "scip/def.h"
38 #include "scip/type_cons.h"
39 #include "scip/type_reader.h"
40 #include "scip/type_result.h"
41 #include "scip/type_retcode.h"
42 #include "scip/type_scip.h"
43 #include "scip/type_var.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 /** includes the ppm file reader into SCIP
50  *
51  * @ingroup FileReaderIncludes
52  */
53 SCIP_EXPORT
55  SCIP* scip /**< SCIP data structure */
56  );
57 
58 /**@addtogroup FILEREADERS
59  *
60  * @{
61  */
62 
63 /** writes problem to file */
64 SCIP_EXPORT
66  SCIP* scip, /**< SCIP data structure */
67  FILE* file, /**< output file, or NULL if standard output should be used */
68  const char* name, /**< problem name */
69  SCIP_READERDATA* readerdata, /**< information for reader */
70  SCIP_Bool transformed, /**< TRUE iff problem is the transformed problem */
71  SCIP_VAR** vars, /**< array with active variables ordered binary, integer, implicit, continuous */
72  int nvars, /**< number of active variables in the problem */
73  SCIP_CONS** conss, /**< array with constraints of the problem */
74  int nconss, /**< number of constraints in the problem */
75  SCIP_RESULT* result /**< pointer to store the result of the file writing call */
76  );
77 
78 /** @} */
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif
enum SCIP_Result SCIP_RESULT
Definition: type_result.h:61
SCIP_RETCODE SCIPincludeReaderPpm(SCIP *scip)
Definition: reader_ppm.c:499
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:63
type definitions for return codes for SCIP methods
type definitions for SCIP&#39;s main datastructure
type definitions for problem variables
struct SCIP_ReaderData SCIP_READERDATA
Definition: type_reader.h:53
#define SCIP_Bool
Definition: def.h:93
type definitions for input file readers
result codes for SCIP callback methods
common defines and data types used in all packages of SCIP
SCIP_RETCODE SCIPwritePpm(SCIP *scip, FILE *file, const char *name, SCIP_READERDATA *readerdata, SCIP_Bool transformed, SCIP_VAR **vars, int nvars, SCIP_CONS **conss, int nconss, SCIP_RESULT *result)
Definition: reader_ppm.c:541
type definitions for constraints and constraint handlers