|
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) ); 172 /** destructor of user problem data to free original user data (called when original problem is freed) 174 * If the "deleteobject" flag in the SCIPcreateObjProb() method was set to TRUE, this method is not needed, 175 * because all the work to delete the user problem data can be done in the destructor of the user problem 176 * data object. If the "deleteobject" flag was set to FALSE, and the user problem data object stays alive 177 * after the SCIP problem is freed, this method should delete all the problem specific data that is no 193 /** destructor of user problem data to free original user data (called when original problem is freed) 195 * If the "deleteobject" flag in the SCIPcreateObjProb() method was set to TRUE, this method is not needed, 196 * because all the work to delete the user problem data can be done in the destructor of the user problem 197 * data object. If the "deleteobject" flag was set to FALSE, and the user problem data object stays alive 198 * after the SCIP problem is freed, this method should delete all the problem specific data that is no 218 * 1. Return the pointer to the original problem data object (this) as pointer to the transformed problem data 219 * object. The user may modify some internal attributes, but he has to make sure, that these modifications are 220 * reversed in the scip_deltrans() method, such that the original problem data is restored. In this case, 221 * he should set *deleteobject to FALSE, because the problem data must not be destructed by SCIP after the 223 * 2. Call the copy constructor of the problem data object and return the created copy as transformed problem 224 * data object. In this case, he probably wants to set *deleteobject to TRUE, thus letting SCIP call the 230 SCIP_Bool* deleteobject /**< pointer to store whether SCIP should delete the object after solving */
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:180 Definition: ProbDataTSP.h:33 C++ problem data for TSP. virtual SCIP_RETCODE scip_trans(SCIP *scip, ObjProbData **objprobdata, SCIP_Bool *deleteobject) Definition: ProbDataTSP.cpp:227 Definition: GomoryHuTree.h:30 Definition: GomoryHuTree.h:53 static SCIP_RETCODE copy_graph(GRAPH **graph, GRAPH *sourcegraph) Definition: ProbDataTSP.cpp:32 virtual SCIP_RETCODE scip_deltrans(SCIP *scip) Definition: ProbDataTSP.cpp:201 Definition: ConshdlrSubtour.h:30 Definition: GomoryHuTree.h:69 |