Detailed Description
file reader for partial primal solutions (like MIP-start of Cplex)
Definition in file reader_mst.c.
#include <ctype.h>
#include "scip/pub_fileio.h"
#include "scip/pub_message.h"
#include "scip/pub_misc.h"
#include "scip/pub_reader.h"
#include "scip/reader_mst.h"
#include "scip/scip_general.h"
#include "scip/scip_message.h"
#include "scip/scip_param.h"
#include "scip/scip_reader.h"
#include "scip/scip_sol.h"
#include <string.h>
Go to the source code of this file.
Macros | |
#define | READER_NAME "mstreader" |
#define | READER_DESC "file reader for partial primal solutions" |
#define | READER_EXTENSION "mst" |
Functions | |
static SCIP_RETCODE | readMst (SCIP *scip, const char *fname, SCIP_Bool xml) |
static | SCIP_DECL_READERCOPY (readerCopyMst) |
static | SCIP_DECL_READERREAD (readerReadMst) |
SCIP_RETCODE | SCIPincludeReaderMst (SCIP *scip) |
Macro Definition Documentation
◆ READER_NAME
#define READER_NAME "mstreader" |
Definition at line 38 of file reader_mst.c.
Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERREAD(), and SCIPincludeReaderMst().
◆ READER_DESC
#define READER_DESC "file reader for partial primal solutions" |
Definition at line 39 of file reader_mst.c.
Referenced by SCIPincludeReaderMst().
◆ READER_EXTENSION
#define READER_EXTENSION "mst" |
Definition at line 40 of file reader_mst.c.
Referenced by SCIPincludeReaderMst().
Function Documentation
◆ readMst()
|
static |
reads a given SCIP solution file, problem has to be transformed in advance
- Parameters
-
scip SCIP data structure fname name of the input file xml true, iff the given file is XML
Definition at line 49 of file reader_mst.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_READERROR, SCIP_VERBLEVEL_NORMAL, SCIPaddSolFree(), SCIPcreatePartialSol(), SCIPerrorMessage, SCIPfreeSol(), SCIPgetBoolParam(), SCIPisTransformed(), SCIPreadSolFile(), and SCIPverbMessage().
Referenced by SCIP_DECL_READERREAD().
◆ SCIP_DECL_READERCOPY()
|
static |
copy method for reader plugins (called when SCIP copies plugins)
Definition at line 104 of file reader_mst.c.
References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderMst(), and SCIPreaderGetName().
◆ SCIP_DECL_READERREAD()
|
static |
problem reading method of reader
In order to determine the type of the file, we have to open it. Thus, it has to be opened twice. This might be removed, but is likely to not hurt the performance too much.
Definition at line 123 of file reader_mst.c.
References FALSE, NULL, READER_NAME, readMst(), SCIP_CALL, SCIP_DIDNOTRUN, SCIP_MAXSTRLEN, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIP_STAGE_PROBLEM, SCIP_SUCCESS, SCIPerrorMessage, SCIPfclose(), SCIPfgets(), SCIPfopen(), SCIPgetStage(), SCIPprintSysError(), SCIPreaderGetName(), and TRUE.