reader_smps.c
Go to the documentation of this file.
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
45 * The SMPS reader coordinates the reading of the cor, tim and sto files. The public reading methods from the cor, tim
46 * and sto readers are called from the SMPS reader. So, the header files for the cor, tim and sto readers are required.
50 #define READER_DESC "file reader for core problem of stochastic programs in the SMPS file format"
354 SCIP_CALL( SCIPgetOrigVarsData(scip, NULL, &nvars, &nbinvars, &nintvars, &nimplintvars, &ncontvars) );
360 SCIPinfoMessage(scip, NULL, "reading the time file <%s> for problem %s\n", timfilename, probname);
383 SCIP_CALL( SCIPgetOrigVarsData(scip, NULL, &nvars, &nbinvars, &nintvars, &nimplintvars, &ncontvars) );
385 /* if Benders' decomposition is used, the variable will be distributed to a number of subproblems */
448 SCIP_CALL( SCIPincludeReaderBasic(scip, &reader, READER_NAME, READER_DESC, READER_EXTENSION, NULL) );
SCIP_RETCODE SCIPreadTim(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_tim.c:869
TIM file reader - the stage information for a stochastic programming instance in SMPS format...
Definition: struct_reader.h:36
Definition: struct_scip.h:59
public methods for memory management
Definition: type_result.h:49
COR file reader (MPS format of the core problem for stochastic programs)
void SCIPsplitFilename(char *filename, char **path, char **name, char **extension, char **compression)
Definition: misc.c:10974
STO file reader - the stochastic information of an instance in SMPS format.
SCIP_RETCODE SCIPgetOrigVarsData(SCIP *scip, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
Definition: scip_prob.c:2356
#define SCIPduplicateBufferArray(scip, ptr, source, num)
Definition: scip_mem.h:123
Definition: type_retcode.h:38
static SCIP_RETCODE smpsinputCreate(SCIP *scip, SMPSINPUT **smpsi, SCIP_FILE *fp)
Definition: reader_smps.c:86
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
Definition: scip_message.c:199
Definition: type_retcode.h:36
Definition: reader_smps.c:72
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
Definition: scip_param.c:241
Definition: type_retcode.h:33
static const char * smpsinputField0(const SMPSINPUT *smpsi)
Definition: reader_smps.c:119
wrapper functions to map file i/o to standard or zlib file i/o
Definition: reader_smps.c:65
public data structures and miscellaneous methods
SCIP_RETCODE SCIPincludeReaderBasic(SCIP *scip, SCIP_READER **readerptr, const char *name, const char *desc, const char *extension, SCIP_READERDATA *readerdata)
Definition: scip_reader.c:100
SCIP_RETCODE SCIPreadSto(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_sto.c:2799
SCIP_RETCODE SCIPreadCor(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_cor.c:178
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERCOPY((*readercopy)))
Definition: scip_reader.c:138
Definition: reader_smps.c:66
public methods for message output
public methods for input file readers
SMPS file reader - SMPS files lists the cor, tim and sto files for a single instance to be read...
public methods for message handling
SCIP_RETCODE SCIPsetReaderRead(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERREAD((*readerread)))
Definition: scip_reader.c:186
Definition: type_retcode.h:45
SCIPallocBlockMemory(scip, subsol))
Definition: objbenders.h:33
public methods for reader plugins
public methods for global and local (sub)problems
Definition: reader_smps.c:64
memory allocation routines