Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SCIP 9.2.0
SCIP 8.1.0
SCIP 7.0.3
SCIP 6.0.2
SCIP 5.0.1
SCIP 4.0.1
SCIP 3.2.1
SCIP
Solving Constraint Integer Programs
Overview
Files
Plugin Types
Interfaces
Examples
How To
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
scip-repo
src
scip
reader_sol.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-2014 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_sol.h
17
* @ingroup FILEREADERS
18
* @brief file reader for primal solutions
19
* @author Tobias Achterberg
20
* @author Marc Pfetsch
21
*
22
* This reader handles solutions in two formats:
23
*
24
* - <b>SCIP raw format</b>@n
25
* The format is as follows:@n@n
26
* line 1: "solution status: <status>"@n
27
* line 2: "objective value: <value>"@n
28
* line 3+i: <variable name> <value> (obj: <objective coefficient of variable>)
29
* @n@n
30
* Only nonzero values need to be listed.
31
* @par
32
* Example:
33
* @code
34
* solution status: optimal
35
* objective value: 1
36
* x1 1 (obj:1)
37
* x2 1 (obj:0)
38
* @endcode
39
* - <b>XML format</b>@n
40
* This format is used by CPLEX, for example. For reading we require a section of @p
41
* <variables>. Each entry in this section consists of@n
42
* <variable name="<name>" index="<number>" value="<value>"/>
43
* @par
44
* Example:
45
* @code
46
* <?xml version = "1.0" standalone="yes"?>
47
* <variables>
48
* <variable name="x1" index="1" value="1"/>
49
* <variable name="x2" index="2" value="1"/>
50
* </variables>
51
* </xml>
52
* @endcode
53
*/
54
55
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
56
57
#ifndef __SCIP_READER_SOL_H__
58
#define __SCIP_READER_SOL_H__
59
60
61
#include "
scip/scip.h
"
62
63
#ifdef __cplusplus
64
extern
"C"
{
65
#endif
66
67
/** includes the sol file reader into SCIP */
68
extern
69
SCIP_RETCODE
SCIPincludeReaderSol
(
70
SCIP
* scip
/**< SCIP data structure */
71
);
72
73
#ifdef __cplusplus
74
}
75
#endif
76
77
#endif
78