Detailed Description
SCIP file reader for TSP data files
Definition at line 45 of file ReaderTSP.h.
#include <ReaderTSP.h>
Public Member Functions | |
ReaderTSP (SCIP *scip) | |
virtual | ~ReaderTSP () |
virtual | SCIP_DECL_READERFREE (scip_free) |
virtual | SCIP_DECL_READERREAD (scip_read) |
virtual | SCIP_DECL_READERWRITE (scip_write) |
Public Member Functions inherited from scip::ObjReader | |
ObjReader (SCIP *scip, const char *name, const char *desc, const char *extension) | |
virtual | ~ObjReader () |
Public Member Functions inherited from scip::ObjCloneable | |
virtual | ~ObjCloneable () |
virtual | SCIP_DECL_OBJCLONEABLECLONE (ObjCloneable *clone) |
virtual | SCIP_DECL_OBJCLONEABLEISCLONEABLE (iscloneable) |
Data Fields | |
SCIP_Bool | round_lengths_ |
Data Fields inherited from scip::ObjReader | |
SCIP * | scip_ |
char * | scip_name_ |
char * | scip_desc_ |
char * | scip_extension_ |
Constructor & Destructor Documentation
◆ ReaderTSP()
|
inline |
default constructor
Definition at line 52 of file ReaderTSP.h.
References FALSE, NULL, SCIPaddBoolParam(), and TRUE.
◆ ~ReaderTSP()
|
inlinevirtual |
destructor
Definition at line 62 of file ReaderTSP.h.
References nnodes, SCIP_DECL_READERFREE(), SCIP_DECL_READERREAD(), and SCIP_DECL_READERWRITE().
Member Function Documentation
◆ SCIP_DECL_READERFREE()
|
virtual |
destructor of file reader to free user data (called when SCIP is exiting)
Reimplemented from scip::ObjReader.
Referenced by ~ReaderTSP().
◆ SCIP_DECL_READERREAD()
|
virtual |
problem reading method of reader
possible return values for *result:
- SCIP_SUCCESS : the reader read the file correctly and created an appropritate problem
- SCIP_DIDNOTRUN : the reader is not responsible for given input file
If the reader detected an error in the input file, it should return with RETCODE SCIP_READERR or SCIP_NOFILE.
Reimplemented from scip::ObjReader.
Referenced by ~ReaderTSP().
◆ SCIP_DECL_READERWRITE()
|
virtual |
problem writing method of reader; NOTE: if the parameter "genericnames" is TRUE, then SCIP already set all variable and constraint names to generic names; therefore, this method should always use SCIPvarGetName() and SCIPconsGetName();
possible return values for *result:
- SCIP_SUCCESS : the reader read the file correctly and created an appropritate problem
- SCIP_DIDNOTRUN : the reader is not responsible for given input file
If the reader detected an error in the writing to the file stream, it should return with RETCODE SCIP_WRITEERROR.
Reimplemented from scip::ObjReader.
Referenced by ~ReaderTSP().
Field Documentation
◆ round_lengths_
SCIP_Bool tsp::ReaderTSP::round_lengths_ |
Definition at line 49 of file ReaderTSP.h.