file reader for variable fixings
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.
Definition in file reader_fix.c.
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) |
#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().
|
static |
reads the given solution file
scip | SCIP data structure |
filename | name of the input file |
Definition at line 55 of file reader_fix.c.
References FALSE, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIP_Real, SCIP_VERBLEVEL_NORMAL, SCIPerrorMessage, SCIPfclose(), SCIPfeof(), SCIPfgets(), SCIPfindVar(), SCIPfixVar(), SCIPfopen(), SCIPinfinity(), SCIPprintSysError(), SCIPsnprintf(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), SCIPverbMessage(), SCIPwarningMessage(), and TRUE.
Referenced by SCIP_DECL_READERREAD().
|
static |
copy method for reader plugins (called when SCIP copies plugins)
Definition at line 178 of file reader_fix.c.
References READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderFix(), and SCIPreaderGetName().
|
static |
problem reading method of reader
Definition at line 192 of file reader_fix.c.
References READER_NAME, readSol(), SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_READERROR, SCIP_STAGE_PROBLEM, SCIP_SUCCESS, SCIPerrorMessage, SCIPfreeTransform(), SCIPgetStage(), and SCIPreaderGetName().