Detailed Description
C++ wrapper for cut separators.
Definition in file objsepa.h.
Go to the source code of this file.
Data Structures | |
class | scip::ObjSepa |
C++ wrapper for cut separators. More... | |
Namespaces | |
scip | |
Functions | |
SCIP_RETCODE | SCIPincludeObjSepa (SCIP *scip, scip::ObjSepa *objsepa, SCIP_Bool deleteobject) |
scip::ObjSepa * | SCIPfindObjSepa (SCIP *scip, const char *name) |
scip::ObjSepa * | SCIPgetObjSepa (SCIP *scip, SCIP_SEPA *sepa) |
Function Documentation
◆ SCIPincludeObjSepa()
SCIP_RETCODE SCIPincludeObjSepa | ( | SCIP * | scip, |
scip::ObjSepa * | objsepa, | ||
SCIP_Bool | deleteobject | ||
) |
creates the cut separator for the given cut separator object and includes it in SCIP
The method should be called in one of the following ways:
- The user is resposible of deleting the object: SCIP_CALL( SCIPcreate(&scip) ); ... MySepa* mysepa = new MySepa(...); SCIP_CALL( SCIPincludeObjSepa(scip, &mysepa, FALSE) ); ... SCIP_CALL( SCIPfree(&scip) ); delete mysepa; // delete sepa AFTER SCIPfree() !
- The object pointer is passed to SCIP and deleted by SCIP in the SCIPfree() call: SCIP_CALL( SCIPcreate(&scip) ); ... SCIP_CALL( SCIPincludeObjSepa(scip, new MySepa(...), TRUE) ); ... SCIP_CALL( SCIPfree(&scip) ); // destructor of MySepa is called here
creates the cut separator for the given cut separator object and includes it in SCIP
- Parameters
-
scip SCIP data structure objsepa cut separator object deleteobject should the cut separator object be deleted when cut separator is freed?
Definition at line 211 of file objsepa.cpp.
References NULL, SCIP_CALL, scip::ObjSepa::scip_delay_, scip::ObjSepa::scip_desc_, scip::ObjSepa::scip_freq_, scip::ObjSepa::scip_maxbounddist_, scip::ObjSepa::scip_name_, SCIP_OKAY, scip::ObjSepa::scip_priority_, scip::ObjSepa::scip_usessubscip_, and SCIPincludeSepa().
Referenced by SCIP_DECL_SEPACOPY(), and scip::ObjSepa::SCIP_DECL_SEPAEXECSOL().
◆ SCIPfindObjSepa()
scip::ObjSepa* SCIPfindObjSepa | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the sepa object of the given name, or 0 if not existing
- Parameters
-
scip SCIP data structure name name of cut separator
Definition at line 238 of file objsepa.cpp.
References NULL, SCIPfindSepa(), and SCIPsepaGetData().
Referenced by scip::ObjSepa::SCIP_DECL_SEPAEXECSOL().
◆ SCIPgetObjSepa()
scip::ObjSepa* SCIPgetObjSepa | ( | SCIP * | scip, |
SCIP_SEPA * | sepa | ||
) |
returns the sepa object for the given cut separator
- Parameters
-
scip SCIP data structure sepa cut separator
Definition at line 257 of file objsepa.cpp.
References NULL, and SCIPsepaGetData().
Referenced by scip::ObjSepa::SCIP_DECL_SEPAEXECSOL().