Detailed Description
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.
- Note
- The format is equal to the (not xml) solution format of SCIP.
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>
#include <strings.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
◆ READER_NAME
#define READER_NAME "fixreader" |
Definition at line 55 of file reader_fix.c.
Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERREAD(), and SCIPincludeReaderFix().
◆ READER_DESC
#define READER_DESC "file reader for variable fixings" |
Definition at line 56 of file reader_fix.c.
Referenced by SCIPincludeReaderFix().
◆ READER_EXTENSION
#define READER_EXTENSION "fix" |
Definition at line 57 of file reader_fix.c.
Referenced by SCIPincludeReaderFix().
Function Documentation
◆ readSol()
|
static |
reads the given solution file
- Parameters
-
scip SCIP data structure filename name of the input file
Definition at line 66 of file reader_fix.c.
References FALSE, NULL, 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().
◆ SCIP_DECL_READERCOPY()
|
static |
copy method for reader plugins (called when SCIP copies plugins)
Definition at line 190 of file reader_fix.c.
References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderFix(), and SCIPreaderGetName().
◆ SCIP_DECL_READERREAD()
|
static |
problem reading method of reader
Definition at line 204 of file reader_fix.c.
References NULL, READER_NAME, readSol(), SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_READERROR, SCIP_STAGE_PROBLEM, SCIP_SUCCESS, SCIPerrorMessage, SCIPfreeTransform(), SCIPgetStage(), and SCIPreaderGetName().