assert(smpsi !=
NULL);
104(*smpsi)->lineno = 0;
105(*smpsi)->haserror =
FALSE;
106(*smpsi)->buf [0] =
'\0';
107(*smpsi)->f0 =
NULL;
108(*smpsi)->f1 =
NULL;
129assert(smpsi !=
NULL);
162smpsi->
f0= smpsi->
f1= 0;
173 while( *smpsi->
buf==
'*');
176len = (
unsignedint) strlen(smpsi->
buf);
179 for( i = 0; i < len; i++ )
181 if( (smpsi->
buf[i] ==
'\t') || (smpsi->
buf[i] ==
'\n') || (smpsi->
buf[i] ==
'\r') )
197assert(smpsi->
f0!= 0);
207 while( is_marker || is_empty );
221assert(reader !=
NULL);
244 char* fileextension;
245 char* fromlastslash;
256assert(filename !=
NULL);
264fromlastslash = (
char*) strrchr(filename,
'/');
266 if( fromlastslash ==
NULL)
269parentlen = strlen(filename) - (strlen(fromlastslash) - 1);
271(void)
SCIPstrncpy(parent, filename, (
int)parentlen + 1);
320 SCIPerrorMessage(
"The core file has not been listed in <%s>\n", filename);
325 SCIPerrorMessage(
"The tim file has not been listed in <%s>\n", filename);
330 SCIPerrorMessage(
"The sto file has not been listed in <%s>\n", filename);
334 if( !hascorfile || !hastimfile || !hasstofile )
340 for( i = 0; i < 3; i++ )
362 "core problem has %d variables (%d bin, %d int, %d impl, %d cont) and %d constraints\n",
405 "has %d variables (%d bin, %d int, %d impl, %d cont) and %d constraints\n",
456assert(reader !=
NULL);
#define SCIP_CALL_TERMINATE(retcode, x, TERM)
SCIP_FILE * SCIPfopen(const char *path, const char *mode)
int SCIPfclose(SCIP_FILE *fp)
char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
int SCIPstoGetNScenarios(SCIP *scip)
SCIP_RETCODE SCIPreadCor(SCIP *scip, const char *filename, SCIP_RESULT *result)
SCIP_RETCODE SCIPreadTim(SCIP *scip, const char *filename, SCIP_RESULT *result)
SCIP_RETCODE SCIPreadSto(SCIP *scip, const char *filename, SCIP_RESULT *result)
void SCIPsplitFilename(char *filename, char **path, char **name, char **extension, char **compression)
SCIP_RETCODE SCIPincludeReaderSmps(SCIP *scip)
SCIP_RETCODE SCIPgetOrigVarsData(SCIP *scip, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
int SCIPgetNOrigConss(SCIP *scip)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
#define SCIPfreeBufferArray(scip, ptr)
#define SCIPduplicateBufferArray(scip, ptr, source, num)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
SCIP_RETCODE SCIPincludeReaderBasic(SCIP *scip, SCIP_READER **readerptr, const char *name, const char *desc, const char *extension, SCIP_READERDATA *readerdata)
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERCOPY((*readercopy)))
const char * SCIPreaderGetName(SCIP_READER *reader)
SCIP_RETCODE SCIPsetReaderRead(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERREAD((*readerread)))
int SCIPstrcasecmp(const char *s1, const char *s2)
int SCIPsnprintf(char *t, int len, const char *s,...)
void SCIPprintSysError(const char *message)
int SCIPstrncpy(char *t, const char *s, int size)
char * SCIPstrtok(char *s, const char *delim, char **ptrptr)
memory allocation routines
wrapper functions to map file i/o to standard or zlib file i/o
struct SCIP_File SCIP_FILE
public methods for message output
public data structures and miscellaneous methods
public methods for input file readers
COR file reader (MPS format of the core problem for stochastic programs)
#define STO_FILEEXTENSION
static SCIP_RETCODE smpsinputCreate(SCIP *scip, SMPSINPUT **smpsi, SCIP_FILE *fp)
static SCIP_Bool smpsinputReadLine(SMPSINPUT *smpsi)
static SCIP_DECL_READERREAD(readerReadSmps)
static void clearFrom(char *buf, unsigned int pos)
#define TIM_FILEEXTENSION
static SCIP_DECL_READERCOPY(readerCopySmps)
enum SCIP_SmpsFileType SCIP_SMPSFILETYPE
static void smpsinputFree(SCIP *scip, SMPSINPUT **smpsi)
static const char * smpsinputField0(const SMPSINPUT *smpsi)
#define COR_FILEEXTENSION
SMPS file reader - SMPS files lists the cor, tim and sto files for a single instance to be read.
STO file reader - the stochastic information of an instance in SMPS format.
int SCIPtimGetNStages(SCIP *scip)
TIM file reader - the stage information for a stochastic programming instance in SMPS format.
public methods for memory management
public methods for message handling
public methods for global and local (sub)problems
public methods for reader plugins
char buf[SMPS_MAX_LINELEN]
enum SCIP_Retcode SCIP_RETCODE
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4