Detailed Description
COR file reader (MPS format of the core problem for stochastic programs)
Definition in file reader_cor.c.
#include "scip/pub_message.h"
#include "scip/pub_reader.h"
#include "scip/reader_cor.h"
#include "scip/reader_mps.h"
#include "scip/scip_mem.h"
#include "scip/scip_reader.h"
#include <string.h>
Go to the source code of this file.
Macros | |
#define | READER_NAME "correader" |
#define | READER_DESC "file reader for CORE problem of stochastic programs in the SMPS file format" |
#define | READER_EXTENSION "cor" |
#define | SCIP_DEFAULT_ARRAYSIZE 100 |
Functions | |
static SCIP_RETCODE | createReaderdata (SCIP *scip, SCIP_READERDATA *readerdata) |
static SCIP_RETCODE | freeReaderdata (SCIP *scip, SCIP_READERDATA *readerdata) |
static | SCIP_DECL_READERCOPY (readerCopyCor) |
static | SCIP_DECL_READERFREE (readerFreeCor) |
static | SCIP_DECL_READERREAD (readerReadCor) |
SCIP_RETCODE | SCIPincludeReaderCor (SCIP *scip) |
SCIP_RETCODE | SCIPreadCor (SCIP *scip, const char *filename, SCIP_RESULT *result) |
SCIP_Bool | SCIPcorHasRead (SCIP_READER *reader) |
int | SCIPcorGetNVarNames (SCIP_READER *reader) |
int | SCIPcorGetNConsNames (SCIP_READER *reader) |
const char * | SCIPcorGetVarName (SCIP_READER *reader, int i) |
const char * | SCIPcorGetConsName (SCIP_READER *reader, int i) |
Macro Definition Documentation
◆ READER_NAME
#define READER_NAME "correader" |
Definition at line 31 of file reader_cor.c.
Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIPcorGetConsName(), SCIPcorGetNConsNames(), SCIPcorGetNVarNames(), SCIPcorGetVarName(), SCIPcorHasRead(), SCIPincludeReaderCor(), and SCIPreadCor().
◆ READER_DESC
#define READER_DESC "file reader for CORE problem of stochastic programs in the SMPS file format" |
Definition at line 32 of file reader_cor.c.
Referenced by SCIPincludeReaderCor().
◆ READER_EXTENSION
#define READER_EXTENSION "cor" |
Definition at line 33 of file reader_cor.c.
Referenced by SCIPincludeReaderCor().
◆ SCIP_DEFAULT_ARRAYSIZE
#define SCIP_DEFAULT_ARRAYSIZE 100 |
Definition at line 35 of file reader_cor.c.
Referenced by createReaderdata().
Function Documentation
◆ createReaderdata()
|
static |
creates the reader data
- Parameters
-
scip SCIP data structure readerdata the reader data structure
Definition at line 51 of file reader_cor.c.
References FALSE, NULL, SCIP_CALL, SCIP_DEFAULT_ARRAYSIZE, SCIP_OKAY, and SCIPallocBlockMemoryArray.
Referenced by SCIPincludeReaderCor().
◆ freeReaderdata()
|
static |
creates the reader data
- Parameters
-
scip SCIP data structure readerdata the reader data structure
Definition at line 73 of file reader_cor.c.
References NULL, SCIP_OKAY, and SCIPfreeBlockMemoryArray.
Referenced by SCIP_DECL_READERFREE().
◆ SCIP_DECL_READERCOPY()
|
static |
copy method for reader plugins (called when SCIP copies plugins)
Definition at line 101 of file reader_cor.c.
References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderCor(), and SCIPreaderGetName().
◆ SCIP_DECL_READERFREE()
|
static |
destructor of reader to free user data (called when SCIP is exiting) ! [SnippetReaderFreeCor]
Definition at line 117 of file reader_cor.c.
References freeReaderdata(), NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPreaderGetData(), and SCIPreaderGetName().
◆ SCIP_DECL_READERREAD()
|
static |
! [SnippetReaderFreeCor] problem reading method of reader
Definition at line 136 of file reader_cor.c.
References SCIP_CALL, SCIP_OKAY, and SCIPreadCor().