linear ordering file reader
This file implements the reader/parser used to read linear ordering problems. For more details see How to add file readers. The data should be given in LOLIB format, see LOLIB.
Definition in file reader_lop.c.
Go to the source code of this file.
Macros | |
#define | READER_NAME "lopreader" |
#define | READER_DESC "file reader for linear ordering problems" |
#define | READER_EXTENSION "lop" |
Functions | |
static SCIP_RETCODE | LOPreadFile (SCIP *scip, const char *filename, int *n, SCIP_Real ***W) |
static SCIP_RETCODE | getProblemName (const char *filename, char *probname, int maxSize) |
Callback methods | |
static | SCIP_DECL_READERREAD (LOPreaderRead) |
Interface methods | |
SCIP_RETCODE | SCIPincludeReaderLOP (SCIP *scip) |
#define READER_NAME "lopreader" |
Definition at line 32 of file reader_lop.c.
Referenced by SCIPincludeReaderLOP().
#define READER_DESC "file reader for linear ordering problems" |
Definition at line 33 of file reader_lop.c.
Referenced by SCIPincludeReaderLOP().
#define READER_EXTENSION "lop" |
Definition at line 34 of file reader_lop.c.
Referenced by SCIPincludeReaderLOP().
|
static |
read weight matrix from file (in LOLIB format)
Format: comment line n = # of elements weight matrix (n times n double matrix)
scip | SCIP data structure |
filename | name of file to read |
n | pointer to store the number of elements on exit |
W | pointer to store the weight matrix on exit |
Definition at line 47 of file reader_lop.c.
References SCIP_CALL, SCIP_MAXSTRLEN, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIP_Real, SCIPallocBlockMemoryArray, SCIPerrorMessage, and SCIPprintSysError().
Referenced by SCIP_DECL_READERREAD().
|
static |
get problem name
Returns NULL on error
filename | input filename |
probname | output problemname |
maxSize | maximum size of probname |
Definition at line 117 of file reader_lop.c.
References SCIP_ERROR, and SCIP_OKAY.
Referenced by SCIP_DECL_READERREAD().
|
static |
problem reading method of reader
Definition at line 169 of file reader_lop.c.
References FALSE, getProblemName(), LOPreadFile(), SCIP_CALL, SCIP_DIDNOTRUN, SCIP_MAXSTRLEN, SCIP_OBJSENSE_MAXIMIZE, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIP_VARTYPE_BINARY, SCIPaddCons(), SCIPaddVar(), SCIPallocBlockMemoryArray, SCIPcreateConsLOP(), SCIPcreateProbBasic(), SCIPcreateVar(), SCIPfreeBlockMemoryArray, SCIPinfoMessage(), SCIPprintOrigProblem(), SCIPreleaseCons(), SCIPreleaseVar(), SCIPsetObjsense(), SCIPsnprintf(), and TRUE.
SCIP_RETCODE SCIPincludeReaderLOP | ( | SCIP * | scip | ) |
includes the linear ordering file reader in SCIP
scip | SCIP data structure |
Definition at line 263 of file reader_lop.c.
References READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderBasic(), and SCIPsetReaderRead().
Referenced by main().