Scippy

SCIP

Solving Constraint Integer Programs

reader_sol.h File Reference

Detailed Description

file reader for primal solutions

Author
Tobias Achterberg
Marc Pfetsch

This reader handles solutions in two formats:

  • SCIP raw format
    The format is as follows:

    line 1: "solution status: <status>"
    line 2: "objective value: <value>"
    line 3+i: <variable name> <value> (obj: <objective coefficient of variable>)

    Only nonzero values need to be listed.
    Example:
    solution status: optimal
    objective value: 1
    x1 1 (obj:1)
    x2 1 (obj:0)
  • XML format
    This format is used by CPLEX, for example. For reading we require a section of <variables>. Each entry in this section consists of
    <variable name="<name>" index="<number>" value="<value>"/>
    Example:
    <?xml version = "1.0" standalone="yes"?>
    <variables>
    <variable name="x1" index="1" value="1"/>
    <variable name="x2" index="2" value="1"/>
    </variables>
    </xml>

Definition in file reader_sol.h.

#include "scip/scip.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPincludeReaderSol (SCIP *scip)
 

Function Documentation

SCIP_RETCODE SCIPincludeReaderSol ( SCIP scip)

includes the sol file reader into SCIP

Parameters
scipSCIP data structure