/** destructor of separator to free user data (called when SCIP is exiting) */ static SCIP_DECL_SEPAFREE(sepaFreeIntobj) { /*lint --e{715}*/ SCIP_SEPADATA* sepadata; /* free separator data */ sepadata = SCIPsepaGetData(sepa); assert(sepadata != NULL); SCIP_CALL( sepadataFree(scip, &sepadata) ); SCIPsepaSetData(sepa, NULL); return SCIP_OKAY; }
/** destructor of separator to free user data (called when SCIP is exiting) */ static SCIP_DECL_SEPAFREE(sepaFreeGomory) { /*lint --e{715}*/ SCIP_SEPADATA* sepadata; assert(strcmp(SCIPsepaGetName(sepa), SEPA_NAME) == 0); /* free separator data */ sepadata = SCIPsepaGetData(sepa); assert(sepadata != NULL); SCIPfreeMemory(scip, &sepadata); SCIPsepaSetData(sepa, NULL); return SCIP_OKAY; }
/** destructor of separator to free user data (called when SCIP is exiting) */ static SCIP_DECL_SEPAFREE(sepaFreeImpliedbounds) { /*lint --e{715}*/ SCIP_SEPADATA* sepadata; assert(scip != NULL); assert(sepa != NULL); assert(strcmp(SCIPsepaGetName(sepa), SEPA_NAME) == 0); /* get separation data and free it */ sepadata = SCIPsepaGetData(sepa); assert(sepadata != NULL); SCIPfreeMemory(scip, &sepadata); /* reset data pointer to NULL */ SCIPsepaSetData(sepa, NULL); return SCIP_OKAY; }