All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
scip::ObjProbData Class Reference Detailed DescriptionC++ wrapper for user problem data. This class defines the interface for user problem data implemented in C++. This class can be accessed at any time using the methods SCIPgetObjProbData(). Therefore, it can be used to store data which has to be accessible within several plugins. Definition at line 43 of file objprobdata.h.
Constructor & Destructor Documentation
default constructor Definition at line 47 of file objprobdata.h.
destructor Definition at line 52 of file objprobdata.h. Member Function Documentation
destructor of user problem data to free original user data (called when original problem is freed) If the "deleteobject" flag in the SCIPcreateObjProb() method was set to TRUE, this method is not needed, because all the work to delete the user problem data can be done in the destructor of the user problem data object. If the "deleteobject" flag was set to FALSE, and the user problem data object stays alive after the SCIP problem is freed, this method should delete all the problem specific data that is no longer needed.
Definition at line 64 of file objprobdata.h. References SCIP_OKAY.
creates user data of transformed problem by transforming the original user problem data (called after problem was transformed) The user has two possibilities to implement this method:
Definition at line 84 of file objprobdata.h.
destructor of user problem data to free transformed user data (called when transformed problem is freed) If the "*deleteobject" flag in the scip_trans() method was set to TRUE, this method is not needed, because all the work to delete the user problem data can be done in the destructor of the user problem data object. If the "*deleteobject" flag was set to FALSE, and the user problem data object stays alive after the SCIP problem is freed, this method should delete all the problem specific data that is no longer needed.
Definition at line 110 of file objprobdata.h. References SCIP_OKAY.
solving process initialization method of transformed data (called before the branch and bound process begins) This method is called before the branch and bound process begins and can be used to initialize user problem data that depends for example on the number of active problem variables, because these are now fixed.
Definition at line 122 of file objprobdata.h. References SCIP_OKAY.
solving process deinitialization method of transformed data (called before the branch and bound data is freed) This method is called before the branch and bound data is freed and should be used to free all data that was allocated in the solving process initialization method. The user has to make sure, that all LP rows associated to the transformed user problem data are released.
Definition at line 135 of file objprobdata.h. References SCIP_OKAY.
copies user data of source SCIP for the target SCIP This method should copy the problem data of the source SCIP and create a target problem data for (target) SCIP. Implementing this callback is optional. If the copying process was successful the target SCIP gets this problem data assigned. In case the result pointer is set to SCIP_DIDNOTRUN the target SCIP will have no problem data at all. The variable map and the constraint map can be used via the function SCIPgetVarCopy() and SCIPgetConsCopy(), respectively, to get for certain variables and constraints of the source SCIP the counter parts in the target SCIP. You should be very carefully in using these two methods since they could lead to an infinite loop due to recursion. possible return values for *result:
Definition at line 159 of file objprobdata.h. References SCIP_DIDNOTRUN, and SCIP_OKAY. |