Data Structures | |
class | goblinImport |
Class for reading data objects from file. More... | |
Enumerations | |
enum | goblinController::TFileFormat { goblinController::FMT_GOBLIN = 0, goblinController::FMT_DIMACS_MIN = 1, goblinController::FMT_DIMACS_EDGE = 2, goblinController::FMT_DIMACS_GEOM = 7, goblinController::FMT_SQUARE_UCAP = 3, goblinController::FMT_SQUARE_LENGTH = 4, goblinController::FMT_TRIANGULAR_UCAP = 5, goblinController::FMT_TRIANGULAR_LENGTH = 6 } |
Functions | |
virtual void | goblinRootObject::ReadSpecial (goblinImport &, attributePool &, TPoolEnum) throw (ERParse) |
managedObject * | goblinController::ImportByFormatName (const char *filename, const char *formatName) throw (ERParse) |
managedObject * | goblinController::ImportFromFile (const char *filename, TFileFormat format) throw (ERParse) |
managedObject * | goblinController::Import_Native (const char *filename) throw (ERParse) |
sparseDiGraph * | goblinController::Import_DimacsMin (const char *filename) throw (ERParse) |
sparseGraph * | goblinController::Import_DimacsEdge (const char *filename) throw (ERParse) |
denseGraph * | goblinController::Import_DimacsGeom (const char *filename) throw (ERParse) |
denseDiGraph * | goblinController::Import_SquareMatrix (const char *filename, TFileFormat format) throw (ERParse) |
denseGraph * | goblinController::Import_TriangularMatrix (const char *filename, TFileFormat format) throw (ERParse) |
void | mipInstance::ReadMPSFile (const char *) throw (ERParse,ERRejected) |
void | mipInstance::ReadMPSFile (ifstream &) throw (ERParse,ERRejected) |
void | mipInstance::ReadBASFile (const char *) throw (ERParse,ERRejected) |
void | mipInstance::ReadBASFile (ifstream &) throw (ERParse,ERRejected) |
void | mipInstance::ReadVarValues (goblinImport *, TVar) throw (ERParse) |
template<typename TEntry> | |
TEntry * | goblinImport::GetTuple () throw () |
template<typename TToken> | |
TToken | goblinImport::ReadTuple (const TPoolTable listOfParameters[], TToken endToken, TToken undefToken) throw () |
|
|
|
|
Import a DIMACS like specified graph skeleton into a sparseGraph object.
The problem dimension line must appear once and before the other formats. All lines not matching these formats are ignored. So both separate comment lines and trailing comments are possible. Nodes indices are running 1,2,..,n. Node description lines are necessary only for demand values different from 1.0. For every edge definition line a graph edge is generated, and the number of edges specified in the dimension line is used only to avoid reallocations. Edge attributes can be ommitted, where the default edge length is 1.0, and the defaut upper and lower edge capacities are 1.0 and 0.0 respectively. Note that the format slightly differs from the format for undirected graphs:
The accepted file format is an extension the Dimacs format for undirected graphs, especially for matching problem instances. |
|
Import a DIMACS geom file into a denseGraph object.
The number of lines of the second pattern must match the number specified in the problem dimension line. The dimension may be either 1,2 or 3. |
|
Import a DIMACS like specified digraph skeleton into a sparseDiGraph object.
The problem dimension line must appear once and before the other formats. All lines not matching these formats are ignored. So both separate comment lines and trailing comments are possible. Nodes indices are running 1,2,..,n. Node description lines are necessary only for supply/demand values different from zero. For every arc definition line a graph arc is generated, and the number of arcs specified in the dimension line is used only to avoid reallocations. Arc attributes can be ommitted, where the default arc length is 1.0, and the defaut upper and lower arc capacities are 1.0 and 0.0 respectively. Note that the format slightly differs from the format for undirected graphs:
The accepted file format is an extension the Dimacs format specified for min-cost flow. |
|
Import from a file in a library native format.
|
|
Import an square matrix into a denseDiGraph object.
|
|
Import a lower triangular matrix into a denseGraph object.
|
|
Import from a file in a format specified by a string value.
|
|
Import from a file in a format specified by an enum value.
|
|
|
|
|
|
|
|
|
|
Reimplemented in abstractMixedGraph. |
|
|
|
|