SCIP user problem data for TSP
Definition at line 42 of file ProbDataTSP.h.
#include <ProbDataTSP.h>
|
inline |
default constructor
g | graph data |
Definition at line 49 of file ProbDataTSP.h.
References capture_graph().
Referenced by scip_copy(), and scip_trans().
|
inlinevirtual |
|
virtual |
Copies user data if you want to copy it to a subscip
copies user data if you want to copy it to a subscip
scip | SCIP data structure |
sourcescip | source SCIP main data structure |
varmap | a hashmap which stores the mapping of source variables to corresponding target variables |
consmap | a hashmap which stores the mapping of source contraints to corresponding target constraints |
objprobdata | pointer to store the copied problem data object |
global | create a global or a local copy? |
result | pointer to store the result of the call |
Definition at line 124 of file ProbDataTSP.cpp.
References assert(), copy_graph(), Graph::edges, Graph::nedges, NULL, scip::ObjProbData::ObjProbData(), ProbDataTSP(), release_graph(), result, SCIP_CALL, SCIP_OKAY, SCIP_SUCCESS, SCIPcaptureVar(), SCIPgetObjProbData(), SCIPgetVarCopy(), and GraphEdge::var.
|
virtual |
destructor of user problem data to free original user data (called when original problem is freed)
scip | SCIP data structure |
Reimplemented from scip::ObjProbData.
Definition at line 184 of file ProbDataTSP.cpp.
References i, release_graph(), SCIP_CALL, SCIP_OKAY, and SCIPreleaseVar().
|
virtual |
destructor of user problem data to free transformed user data (called when transformed problem is freed)
destructor of user problem data to free original user data (called when original problem is freed)
scip | SCIP data structure |
Reimplemented from scip::ObjProbData.
Definition at line 199 of file ProbDataTSP.cpp.
References i, release_graph(), SCIP_CALL, SCIP_OKAY, and SCIPreleaseVar().
|
virtual |
creates user data of transformed problem by transforming the original user problem data (called after problem was transformed)
scip | SCIP data structure |
objprobdata | pointer to store the transformed problem data object |
deleteobject | pointer to store whether SCIP should delete the object after solving |
Definition at line 215 of file ProbDataTSP.cpp.
References assert(), copy_graph(), Graph::edges, Graph::nedges, NULL, scip::ObjProbData::ObjProbData(), ProbDataTSP(), release_graph(), SCIP_CALL, SCIP_OKAY, SCIPcaptureVar(), SCIPgetTransformedVar(), TRUE, and GraphEdge::var.
|
inline |
Definition at line 97 of file ProbDataTSP.h.
Referenced by SCIP_DECL_CONSCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEURINIT(), SCIP_DECL_HEURINIT(), and SCIP_DECL_HEURINITSOL().