All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
reader.c File Reference Detailed Descriptioninterface for input file readers Definition in file reader.c. #include <assert.h> #include <string.h> #include <math.h> #include "scip/def.h" #include "blockmemshell/memory.h" #include "scip/set.h" #include "scip/clock.h" #include "scip/pub_misc.h" #include "scip/reader.h" #include "scip/prob.h" #include "scip/pub_var.h" #include "scip/var.h" #include "scip/pub_cons.h" #include "scip/cons.h" #include "scip/struct_reader.h" Go to the source code of this file. Function Documentation
copies the given reader to a new scip
Definition at line 43 of file reader.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPreaderGetName(). Referenced by SCIPsetCopyPlugins().
creates a reader
Definition at line 61 of file reader.c. References BMSallocMemory, BMSduplicateMemoryArray, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_OKAY, and SCIPclockCreate(). Referenced by SCIPincludeReader(), and SCIPincludeReaderBasic().
frees memory of reader
Definition at line 95 of file reader.c. References BMSfreeMemory, BMSfreeMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree(). Referenced by SCIPsetFree().
returns TRUE, if reader is responsible for files with the given extension
Definition at line 123 of file reader.c. References SCIP_Reader::extension, and NULL. Referenced by SCIPreaderRead(), and SCIPreaderWrite().
reads problem data from file with given reader or returns SCIP_DIDNOTRUN
Definition at line 136 of file reader.c. References NULL, readerIsApplicable(), SCIP_Reader::readingtime, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_DIDNOTRUN, SCIP_NOFILE, SCIP_OKAY, SCIP_READERROR, SCIP_SUCCESS, SCIPclockCreate(), SCIPclockFree(), SCIPclockGetTime(), SCIPclockIsRunning(), SCIPclockSetTime(), SCIPclockStart(), and SCIPclockStop(). Referenced by SCIPreadProb().
Definition at line 202 of file reader.c. References BMSfreeMemory, NULL, SCIPvarGetName(), and SCIPvarSetNamePointer(). Referenced by SCIPreaderWrite().
writes problem data to file with given reader or returns SCIP_DIDNOTRUN
Definition at line 222 of file reader.c. References BMSallocMemoryArray, BMSfreeMemory, BMSfreeMemoryArray, SCIP_Prob::conss, SCIP_Prob::fixedvars, SCIP_Prob::maxnconss, SCIP_Prob::name, SCIP_Prob::nbinvars, SCIP_Prob::nconss, SCIP_Prob::ncontvars, SCIP_Prob::nfixedvars, SCIP_Prob::nimplvars, SCIP_Prob::nintvars, NULL, SCIP_Prob::nvars, SCIP_Prob::objoffset, SCIP_Prob::objscale, SCIP_Prob::objsense, SCIP_Prob::probdata, readerIsApplicable(), resetVarname(), SCIP_ALLOC, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OBJSENSE_MINIMIZE, SCIP_OKAY, SCIP_WRITEERROR, SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetEnfoConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNConss(), SCIPconshdlrGetNEnfoConss(), SCIPconsSetNamePointer(), SCIPdebugMessage, SCIPsnprintf(), SCIPvarGetName(), SCIPvarSetNamePointer(), SCIP_Prob::startnconss, SCIP_Prob::startnvars, SCIP_Prob::transformed, and SCIP_Prob::vars. Referenced by printProblem().
gets user data of reader
Definition at line 445 of file reader.c. References NULL, and SCIP_Reader::readerdata. Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIP_DECL_READERREAD(), SCIP_DECL_READERWRITE(), SCIPfindObjReader(), SCIPgetObjReader(), SCIPprintSolReaderFzn(), and SCIPwriteLp().
sets user data of reader; user has to free old data in advance!
Definition at line 455 of file reader.c. References NULL, and SCIP_Reader::readerdata. Referenced by SCIP_DECL_READERFREE().
sets copy method of reader
Definition at line 466 of file reader.c. References NULL. Referenced by SCIPsetReaderCopy().
sets destructor of reader
Definition at line 477 of file reader.c. References NULL. Referenced by SCIPsetReaderFree().
sets read method of reader
Definition at line 488 of file reader.c. References NULL. Referenced by SCIPsetReaderRead().
sets write method of reader
Definition at line 499 of file reader.c. References NULL. Referenced by SCIPsetReaderWrite().
gets name of reader
Definition at line 510 of file reader.c. References SCIP_Reader::name, and NULL. Referenced by displayReaders(), printProblem(), SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIP_DECL_READERREAD(), SCIP_DECL_READERWRITE(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), SCIPreaderCopyInclude(), SCIPreadProb(), and SCIPsetFindReader().
gets description of reader
Definition at line 520 of file reader.c. References SCIP_Reader::desc, and NULL. Referenced by displayReaders(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
gets file extension of reader
Definition at line 530 of file reader.c. References SCIP_Reader::extension, and NULL. Referenced by displayReaders().
return whether the reader can read files
Definition at line 540 of file reader.c. References NULL. Referenced by displayReaders().
return whether the reader can write files
Definition at line 550 of file reader.c. References NULL. Referenced by displayReaders().
gets time in seconds used in this reader for reading
Definition at line 560 of file reader.c. References NULL, SCIP_Reader::readingtime, and SCIPclockGetTime(). Referenced by SCIPgetReadingTime().
resets reading time of reader
Definition at line 570 of file reader.c. References NULL, SCIP_Reader::readingtime, SCIP_OKAY, and SCIPclockReset(). Referenced by SCIPfreeProb(). |