reader_cor.c
Go to the documentation of this file.
31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
107 SCIPfreeBlockMemoryArray(scip, &readerdata->consnames[i], strlen(readerdata->consnames[i]) + 1);
185 SCIP_CALL( SCIPincludeReaderBasic(scip, &reader, READER_NAME, READER_DESC, READER_EXTENSION, readerdata) );
202 const char* filename, /**< full path and name of file to read, or NULL if stdin should be used */
219 /* when the COR file is read, it is necessary to free the reader data from the COR, TIM and STO readers. This is
220 * because the COR file is the base file for the TIM and STO files. For most readers, there is no problem data stored
231 SCIP_CALL( SCIPreadMps(scip, reader, filename, result, &readerdata->varnames, &readerdata->consnames,
232 &readerdata->varnamessize, &readerdata->consnamessize, &readerdata->nvarnames, &readerdata->nconsnames) );
266/** returns whether the COR file has been successfully read. This is used by the TIM and STO readers. */
SCIP_RETCODE SCIPreadCor(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_cor.c:200
const char * SCIPcorGetVarName(SCIP_READER *reader, int i)
Definition: reader_cor.c:315
const char * SCIPcorGetConsName(SCIP_READER *reader, int i)
Definition: reader_cor.c:333
SCIP_RETCODE SCIPreadMps(SCIP *scip, SCIP_READER *reader, const char *filename, SCIP_RESULT *result, const char ***varnames, const char ***consnames, int *varnamessize, int *consnamessize, int *nvarnames, int *nconsnames)
Definition: reader_mps.c:4945
SCIP_RETCODE SCIPincludeReaderBasic(SCIP *scip, SCIP_READER **readerptr, const char *name, const char *desc, const char *extension, SCIP_READERDATA *readerdata)
Definition: scip_reader.c:109
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERCOPY((*readercopy)))
Definition: scip_reader.c:147
SCIP_READER * SCIPfindReader(SCIP *scip, const char *name)
Definition: scip_reader.c:235
SCIP_RETCODE SCIPsetReaderFree(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERFREE((*readerfree)))
Definition: scip_reader.c:171
SCIP_RETCODE SCIPsetReaderRead(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERREAD((*readerread)))
Definition: scip_reader.c:195
Definition: multiprecision.hpp:66
public methods for message output
public methods for input file readers
static SCIP_RETCODE createReaderdata(SCIP *scip, SCIP_READERDATA *readerdata)
Definition: reader_cor.c:65
static SCIP_RETCODE freeReaderdata(SCIP *scip, SCIP_READERDATA *readerdata)
Definition: reader_cor.c:91
COR file reader (MPS format of the core problem for stochastic programs)
(extended) MPS file reader
STO file reader - the stochastic information of an instance in SMPS format.
TIM file reader - the stage information for a stochastic programming instance in SMPS format.
public methods for memory management
public methods for global and local (sub)problems
public methods for reader plugins
Definition: struct_reader.h:46
Definition: struct_scip.h:72