Detailed DescriptionC++ file reader for TSP data files. Definition in file ReaderTSP.cpp. #include <iostream>#include <fstream>#include <string>#include <sstream>#include "objscip/objscip.h"#include "scip/cons_linear.h"#include <math.h>#include "ReaderTSP.h"#include "ProbDataTSP.h"#include "ConshdlrSubtour.h"#include "GomoryHuTree.h"
Include dependency graph for ReaderTSP.cpp:
![]() Go to the source code of this file.
Macro Definition Documentation
Definition at line 42 of file ReaderTSP.cpp. Referenced by SCIP_DECL_READERREAD(). Function Documentation
destructor of file reader to free user data (called when SCIP is exiting) Definition at line 137 of file ReaderTSP.cpp.
problem reading method of reader possible return values for *result:
If the reader detected an error in the input file, it should return with RETCODE SCIP_READERR or SCIP_NOFILE. Definition at line 150 of file ReaderTSP.cpp. References GraphEdge::adjac, GraphEdge::back, create_graph(), Graph::edges, GraphNode::first_edge, GraphNode::id, GraphEdge::length, GraphEdge::next, NINT, Graph::nodes, release_graph(), tsp::SCIPcreateConsSubtour(), and GraphEdge::var.
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:
If the reader detected an error in the writing to the file stream, it should return with RETCODE SCIP_WRITEERROR. Definition at line 472 of file ReaderTSP.cpp. |
|||||||||||||||||||||||||||||||||||||||||||||