reader_smps.c
Go to the documentation of this file.
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
44 * The SMPS reader coordinates the reading of the cor, tim and sto files. The public reading methods from the cor, tim
45 * and sto readers are called from the SMPS reader. So, the header files for the cor, tim and sto readers are required.
49 #define READER_DESC "file reader for core problem of stochastic programs in the SMPS file format"
353 SCIP_CALL( SCIPgetOrigVarsData(scip, NULL, &nvars, &nbinvars, &nintvars, &nimplintvars, &ncontvars) );
359 SCIPinfoMessage(scip, NULL, "reading the time file <%s> for problem %s\n", timfilename, probname);
382 SCIP_CALL( SCIPgetOrigVarsData(scip, NULL, &nvars, &nbinvars, &nintvars, &nimplintvars, &ncontvars) );
384 /* if Benders' decomposition is used, the variable will be distributed to a number of subproblems */
446 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:864
TIM file reader - the stage information for a stochastic programming instance in SMPS format...
Definition: struct_reader.h:36
Definition: struct_scip.h:58
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:10236
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:2409
#define SCIPduplicateBufferArray(scip, ptr, source, num)
Definition: scip_mem.h:138
Definition: type_retcode.h:38
static SCIP_RETCODE smpsinputCreate(SCIP *scip, SMPSINPUT **smpsi, SCIP_FILE *fp)
Definition: reader_smps.c:85
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
Definition: scip_message.c:279
Definition: type_retcode.h:36
Definition: reader_smps.c:71
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
Definition: scip_param.c:322
Definition: type_retcode.h:33
static const char * smpsinputField0(const SMPSINPUT *smpsi)
Definition: reader_smps.c:118
wrapper functions to map file i/o to standard or zlib file i/o
Definition: reader_smps.c:64
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:180
SCIP_RETCODE SCIPreadSto(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_sto.c:2600
SCIP_RETCODE SCIPreadCor(SCIP *scip, const char *filename, SCIP_RESULT *result)
Definition: reader_cor.c:177
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERCOPY((*readercopy)))
Definition: scip_reader.c:218
Definition: reader_smps.c:65
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:266
Definition: type_retcode.h:45
Definition: objbenders.h:33
public methods for reader plugins
public methods for global and local (sub)problems
Definition: reader_smps.c:63
memory allocation routines