Detailed Description
SCIP user problem data for TSP
Definition at line 42 of file ProbDataTSP.h.
#include <ProbDataTSP.h>
Constructor & Destructor Documentation
◆ ProbDataTSP()
|
inline |
default constructor
- Parameters
-
g graph data
Definition at line 49 of file ProbDataTSP.h.
References capture_graph().
Referenced by scip_copy(), and scip_trans().
◆ ~ProbDataTSP()
|
inlinevirtual |
Member Function Documentation
◆ scip_copy()
|
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
- Parameters
-
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 copy_graph(), Graph::edges, Graph::nedges, NULL, ProbDataTSP(), release_graph(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SUCCESS, SCIPcaptureVar(), SCIPgetObjProbData(), SCIPgetVarCopy(), and GraphEdge::var.
◆ scip_delorig()
|
virtual |
destructor of user problem data to free original user data (called when original problem is freed)
- Parameters
-
scip SCIP data structure
Reimplemented from scip::ObjProbData.
Definition at line 184 of file ProbDataTSP.cpp.
References GraphEdge::back, Graph::edges, Graph::nedges, release_graph(), SCIP_CALL, SCIP_OKAY, SCIPreleaseVar(), and GraphEdge::var.
◆ scip_deltrans()
|
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)
- Parameters
-
scip SCIP data structure
Reimplemented from scip::ObjProbData.
Definition at line 199 of file ProbDataTSP.cpp.
References GraphEdge::back, Graph::edges, Graph::nedges, release_graph(), SCIP_CALL, SCIP_OKAY, SCIPreleaseVar(), and GraphEdge::var.
◆ scip_trans()
|
virtual |
creates user data of transformed problem by transforming the original user problem data (called after problem was transformed)
- Parameters
-
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 copy_graph(), Graph::edges, Graph::nedges, NULL, ProbDataTSP(), release_graph(), SCIP_CALL, SCIP_OKAY, SCIPcaptureVar(), SCIPgetTransformedVar(), TRUE, and GraphEdge::var.
◆ getGraph()
|
inline |
Definition at line 97 of file ProbDataTSP.h.
Referenced by SCIP_DECL_CONSCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEURINIT(), and SCIP_DECL_HEURINITSOL().