Scippy

SCIP

Solving Constraint Integer Programs

reader_ccg.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 reader_ccg.h
26 * @ingroup FILEREADERS
27 * @brief Column connectivity graph file reader (actually, only a writer)
28 * @author Marc Pfetsch
29 *
30 * Write weighted column connectivity graph, see reader_ccg.c.
31 */
32
33/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
34
35#ifndef __SCIP_READER_CCG_H__
36#define __SCIP_READER_CCG_H__
37
38#include "scip/def.h"
39#include "scip/type_cons.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
46extern "C" {
47#endif
48
49/** includes the ccg file reader into SCIP
50 *
51 * @ingroup FileReaderIncludes
52 */
53SCIP_EXPORT
55 SCIP* scip /**< SCIP data structure */
56 );
57
58/**@addtogroup FILEREADERS
59 *
60 * @{
61 */
62
63/** writes problem to file */
64SCIP_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_Bool transformed, /**< TRUE iff problem is the transformed problem */
70 SCIP_VAR** vars, /**< array with active variables ordered binary, integer, implicit, continuous */
71 int nvars, /**< number of active variables in the problem */
72 SCIP_CONS** conss, /**< array with constraints of the problem */
73 int nconss, /**< number of constraints in the problem */
74 SCIP_RESULT* result /**< pointer to store the result of the file writing call */
75 );
76
77/** @} */
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif
common defines and data types used in all packages of SCIP
#define SCIP_Bool
Definition: def.h:91
SCIP_RETCODE SCIPwriteCcg(SCIP *scip, FILE *file, const char *name, SCIP_Bool transformed, SCIP_VAR **vars, int nvars, SCIP_CONS **conss, int nconss, SCIP_RESULT *result)
Definition: reader_ccg.c:397
SCIP_RETCODE SCIPincludeReaderCcg(SCIP *scip)
Definition: reader_ccg.c:377
type definitions for constraints and constraint handlers
result codes for SCIP callback methods
enum SCIP_Result SCIP_RESULT
Definition: type_result.h:61
type definitions for return codes for SCIP methods
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:63
type definitions for SCIP's main datastructure
type definitions for problem variables