TIM file reader - the stage information for a stochastic programming instance in SMPS format.
This is a reader for the time file of a stochastic programming instance in SMPS format. The three files that must be read are:
Alternatively, it is possible to create a .smps file with the relative path to the .cor, .tim and .sto files. A file reader is available for the .smps file.
Details regarding the SMPS file format can be found at: Birge, J. R.; Dempster, M. A.; Gassmann, H. I.; Gunn, E.; King, A. J. & Wallace, S. W. A standard input format for multiperiod stochastic linear programs IIASA, Laxenburg, Austria, WP-87-118, 1987
Definition in file reader_tim.h.
#include "scip/def.h"
#include "scip/type_cons.h"
#include "scip/type_reader.h"
#include "scip/type_result.h"
#include "scip/type_retcode.h"
#include "scip/type_scip.h"
#include "scip/type_var.h"
Go to the source code of this file.
Functions | |
SCIP_RETCODE | SCIPincludeReaderTim (SCIP *scip) |
SCIP_RETCODE | SCIPreadTim (SCIP *scip, const char *filename, SCIP_RESULT *result) |
SCIP_Bool | SCIPtimHasRead (SCIP_READER *reader) |
int | SCIPtimGetNStages (SCIP *scip) |
const char * | SCIPtimGetStageName (SCIP *scip, int stagenum) |
const char * | SCIPtimConsGetStageName (SCIP *scip, const char *consname) |
int | SCIPtimFindStage (SCIP *scip, const char *stage) |
SCIP_VAR ** | SCIPtimGetStageVars (SCIP *scip, int stagenum) |
SCIP_CONS ** | SCIPtimGetStageConss (SCIP *scip, int stagenum) |
int | SCIPtimGetStageNVars (SCIP *scip, int stagenum) |
int | SCIPtimGetStageNConss (SCIP *scip, int stagenum) |
SCIP_Bool SCIPtimHasRead | ( | SCIP_READER * | reader | ) |
reader | the file reader itself |
Definition at line 921 of file reader_tim.c.
References assert(), NULL, READER_NAME, SCIP_Bool, SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by SCIP_DECL_READERREAD().
int SCIPtimGetNStages | ( | SCIP * | scip | ) |
scip | SCIP data structure |
Definition at line 938 of file reader_tim.c.
References assert(), NULL, READER_NAME, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by addScenariosToReaderdata(), addScenarioVarsAndConsToProb(), readSto(), removeCoreVariablesAndConstraints(), and SCIP_DECL_READERREAD().
const char * SCIPtimGetStageName | ( | SCIP * | scip, |
int | stagenum ) |
scip | SCIP data structure |
stagenum | the number of the requested stage |
Definition at line 957 of file reader_tim.c.
References assert(), TimInput::nstages, NULL, READER_NAME, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by buildScenarioTree(), and createReaderdata().
const char * SCIPtimConsGetStageName | ( | SCIP * | scip, |
const char * | consname ) |
scip | SCIP data structure |
consname | the constraint to search for |
Definition at line 978 of file reader_tim.c.
References assert(), i, TimInput::nstages, NULL, READER_NAME, SCIPconsGetName(), SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by readIndep().
int SCIPtimFindStage | ( | SCIP * | scip, |
const char * | stage ) |
scip | SCIP data structure |
stage | the name of the requested stage |
Definition at line 1019 of file reader_tim.c.
References assert(), i, NULL, READER_NAME, SCIPABORT, SCIPerrorMessage, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by addScenarioVarsAndConsToProb(), and readScenarios().
scip | SCIP data structure |
stagenum | the number of the requested stage |
Definition at line 1057 of file reader_tim.c.
References assert(), TimInput::nstages, NULL, READER_NAME, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by addScenarioVarsAndConsToProb(), and removeCoreVariablesAndConstraints().
scip | SCIP data structure |
stagenum | the number of the requested stage |
Definition at line 1078 of file reader_tim.c.
References assert(), TimInput::nstages, NULL, READER_NAME, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by addScenarioVarsAndConsToProb(), and removeCoreVariablesAndConstraints().
int SCIPtimGetStageNVars | ( | SCIP * | scip, |
int | stagenum ) |
scip | SCIP data structure |
stagenum | the number of the requested stage |
Definition at line 1099 of file reader_tim.c.
References assert(), TimInput::nstages, NULL, READER_NAME, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by addScenarioVarsAndConsToProb(), and removeCoreVariablesAndConstraints().
int SCIPtimGetStageNConss | ( | SCIP * | scip, |
int | stagenum ) |
scip | SCIP data structure |
stagenum | the number of the requested stage |
Definition at line 1120 of file reader_tim.c.
References assert(), TimInput::nstages, NULL, READER_NAME, SCIPfindReader(), SCIPreaderGetData(), and SCIPreaderGetName().
Referenced by addScenarioVarsAndConsToProb(), and removeCoreVariablesAndConstraints().