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.
#include "scip/pub_fileio.h"#include "scip/pub_message.h"#include "scip/pub_misc.h"#include "scip/pub_reader.h"#include "scip/pub_var.h"#include "scip/reader_fix.h"#include "scip/scip_general.h"#include "scip/scip_message.h"#include "scip/scip_numerics.h"#include "scip/scip_prob.h"#include "scip/scip_reader.h"#include "scip/scip_solve.h"#include "scip/scip_var.h"#include <string.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) |
| #define READER_NAME "fixreader" |
Definition at line 60 of file reader_fix.c.
| #define READER_DESC "file reader for variable fixings" |
Definition at line 61 of file reader_fix.c.
| #define READER_EXTENSION "fix" |
Definition at line 62 of file reader_fix.c.
|
static |
reads the given solution file
Definition at line 71 of file reader_fix.c.
References assert(), FALSE, NULL, SCIP_Bool, SCIP_MAXSTRLEN, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIP_Real, SCIP_VERBLEVEL_NORMAL, SCIPerrorMessage, SCIPfclose(), SCIPfeof(), SCIPfgets(), SCIPfindVar(), SCIPfixVar(), SCIPfopen(), SCIPinfinity(), SCIPprintSysError(), SCIPsnprintf(), SCIPstrncasecmp(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), SCIPverbMessage(), SCIPwarningMessage(), TRUE, and var.
Referenced by SCIP_DECL_READERREAD().
|
static |
copy method for reader plugins (called when SCIP copies plugins)
Definition at line 203 of file reader_fix.c.
References assert(), NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderFix(), and SCIPreaderGetName().
|
static |
problem reading method of reader
Definition at line 217 of file reader_fix.c.
References assert(), NULL, READER_NAME, readSol(), result, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_READERROR, SCIP_STAGE_PROBLEM, SCIP_SUCCESS, SCIPerrorMessage, SCIPfreeTransform(), SCIPgetStage(), and SCIPreaderGetName().