Scippy

SCIP

Solving Constraint Integer Programs

reader_fix.c File Reference

Detailed Description

file reader for variable fixings

Author
Tobias Achterberg

This reader allows to read a file containing fixation values for variables of the current problem. Each line of the file should have format

<variable name> <value to fix>

Note that only a subset of the variables may need to appear in the file. Lines with unknown variable names are ignored. The writing functionality is currently not supported.

Note
The format is equal to the (not xml) solution format of SCIP.

Definition in file reader_fix.c.

#include <assert.h>
#include <string.h>
#include <strings.h>
#include "scip/reader_fix.h"

Go to the source code of this file.

Macros

#define READER_NAME   "fixreader"
 
#define READER_DESC   "file reader for variable fixings"
 
#define READER_EXTENSION   "fix"
 

Functions

static SCIP_RETCODE readSol (SCIP *scip, const char *filename)
 
static SCIP_DECL_READERCOPY (readerCopyFix)
 
static SCIP_DECL_READERREAD (readerReadFix)
 
SCIP_RETCODE SCIPincludeReaderFix (SCIP *scip)
 

Macro Definition Documentation

#define READER_NAME   "fixreader"

Definition at line 44 of file reader_fix.c.

Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERREAD(), and SCIPincludeReaderFix().

#define READER_DESC   "file reader for variable fixings"

Definition at line 45 of file reader_fix.c.

Referenced by SCIPincludeReaderFix().

#define READER_EXTENSION   "fix"

Definition at line 46 of file reader_fix.c.

Referenced by SCIPincludeReaderFix().

Function Documentation

static SCIP_RETCODE readSol ( SCIP scip,
const char *  filename 
)
static
static SCIP_DECL_READERCOPY ( readerCopyFix  )
static

copy method for reader plugins (called when SCIP copies plugins)

Definition at line 176 of file reader_fix.c.

References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderFix(), and SCIPreaderGetName().

static SCIP_DECL_READERREAD ( readerReadFix  )
static
SCIP_RETCODE SCIPincludeReaderFix ( SCIP scip)

includes the fix file reader in SCIP

Parameters
scipSCIP data structure

Definition at line 220 of file reader_fix.c.

References NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderBasic(), SCIPsetReaderCopy(), and SCIPsetReaderRead().

Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeDefaultPlugins().