ProbDataTSP.cpp
Go to the documentation of this file.
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
148 SCIP_CALL( SCIPgetVarCopy(sourcescip, scip, sourcegraph->edges[e].var, &(edgeforw->var), varmap, consmap, global, &success) );
173 /** destructor of user problem data to free original user data (called when original problem is freed)
175 * If the "deleteobject" flag in the SCIPcreateObjProb() method was set to TRUE, this method is not needed,
176 * because all the work to delete the user problem data can be done in the destructor of the user problem
177 * data object. If the "deleteobject" flag was set to FALSE, and the user problem data object stays alive
178 * after the SCIP problem is freed, this method should delete all the problem specific data that is no
195 /** destructor of user problem data to free original user data (called when original problem is freed)
197 * If the "deleteobject" flag in the SCIPcreateObjProb() method was set to TRUE, this method is not needed,
198 * because all the work to delete the user problem data can be done in the destructor of the user problem
199 * data object. If the "deleteobject" flag was set to FALSE, and the user problem data object stays alive
200 * after the SCIP problem is freed, this method should delete all the problem specific data that is no
221 * 1. Return the pointer to the original problem data object (this) as pointer to the transformed problem data
222 * object. The user may modify some internal attributes, but he has to make sure, that these modifications are
223 * reversed in the scip_deltrans() method, such that the original problem data is restored. In this case,
224 * he should set *deleteobject to FALSE, because the problem data must not be destructed by SCIP after the
226 * 2. Call the copy constructor of the problem data object and return the created copy as transformed problem
227 * data object. In this case, he probably wants to set *deleteobject to TRUE, thus letting SCIP call the
233 SCIP_Bool* deleteobject /**< pointer to store whether SCIP should delete the object after solving */
Definition: struct_scip.h:58
Definition: type_result.h:49
SCIP_RETCODE SCIPgetTransformedVar(SCIP *scip, SCIP_VAR *var, SCIP_VAR **transvar)
Definition: scip_var.c:1442
virtual SCIP_RETCODE scip_copy(SCIP *scip, SCIP *sourcescip, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, ObjProbData **objprobdata, SCIP_Bool global, SCIP_RESULT *result)
Definition: ProbDataTSP.cpp:116
generator for global cuts in undirected graphs
virtual SCIP_RETCODE scip_delorig(SCIP *scip)
Definition: ProbDataTSP.cpp:181
Definition: ProbDataTSP.h:33
Definition: struct_misc.h:121
C++ wrapper classes for SCIP.
Definition: type_retcode.h:33
C++ problem data for TSP.
virtual SCIP_RETCODE scip_trans(SCIP *scip, ObjProbData **objprobdata, SCIP_Bool *deleteobject)
Definition: ProbDataTSP.cpp:230
Definition: GomoryHuTree.h:30
Definition: GomoryHuTree.h:53
SCIP_RETCODE SCIPgetVarCopy(SCIP *sourcescip, SCIP *targetscip, SCIP_VAR *sourcevar, SCIP_VAR **targetvar, SCIP_HASHMAP *varmap, SCIP_HASHMAP *consmap, SCIP_Bool global, SCIP_Bool *success)
Definition: scip_copy.c:737
static SCIP_RETCODE copy_graph(GRAPH **graph, GRAPH *sourcegraph)
Definition: ProbDataTSP.cpp:32
virtual SCIP_RETCODE scip_deltrans(SCIP *scip)
Definition: ProbDataTSP.cpp:203
Definition: ConshdlrSubtour.h:30
Definition: type_retcode.h:35
Definition: objbenders.h:33