reader_smps.c
Go to the documentation of this file.
32 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
54 * The SMPS reader coordinates the reading of the cor, tim and sto files. The public reading methods from the cor, tim
55 * and sto readers are called from the SMPS reader. So, the header files for the cor, tim and sto readers are required.
59 #define READER_DESC "file reader for core problem of stochastic programs in the SMPS file format"
363 SCIP_CALL( SCIPgetOrigVarsData(scip, NULL, &nvars, &nbinvars, &nintvars, &nimplintvars, &ncontvars) );
369 SCIPinfoMessage(scip, NULL, "reading the time file <%s> for problem %s\n", timfilename, probname);
392 SCIP_CALL( SCIPgetOrigVarsData(scip, NULL, &nvars, &nbinvars, &nintvars, &nimplintvars, &ncontvars) );
394 /* if Benders' decomposition is used, the variable will be distributed to a number of subproblems */
457 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:878
TIM file reader - the stage information for a stochastic programming instance in SMPS format...
Definition: struct_reader.h:45
Definition: struct_scip.h:68
public methods for memory management
Definition: type_result.h:58
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:10983
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:2365
#define SCIPduplicateBufferArray(scip, ptr, source, num)
Definition: scip_mem.h:132
Definition: type_retcode.h:47
static SCIP_RETCODE smpsinputCreate(SCIP *scip, SMPSINPUT **smpsi, SCIP_FILE *fp)
Definition: reader_smps.c:95
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
Definition: scip_message.c:208
Definition: type_retcode.h:45
Definition: reader_smps.c:81
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
Definition: scip_param.c:250
Definition: type_retcode.h:42
static const char * smpsinputField0(const SMPSINPUT *smpsi)
Definition: reader_smps.c:128
wrapper functions to map file i/o to standard or zlib file i/o
Definition: reader_smps.c:74
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:109
SCIP_RETCODE SCIPreadSto(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_sto.c:2808
SCIP_RETCODE SCIPreadCor(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_cor.c:187
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERCOPY((*readercopy)))
Definition: scip_reader.c:147
Definition: reader_smps.c:75
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:195
Definition: type_retcode.h:54
Definition: objbenders.h:43
public methods for reader plugins
public methods for global and local (sub)problems
Definition: reader_smps.c:73
memory allocation routines