32 #ifndef __PARENT_SET_DATA_H__ 33 #define __PARENT_SET_DATA_H__ 35 #include <scip/scip.h> int *** ParentSets
ParentSets[i][k][l] is the lth parent in the kth parent set of the ith element.
Definition: parent_set_data.h:53
int n
Number of elements in the collection.
Definition: parent_set_data.h:50
SCIP_VAR *** PaVars
PaVars[i][k] is the variable linked to the kth parent set of element i.
Definition: parent_set_data.h:54
The basic data needed to record a collection of parent sets associated with a problem.
Definition: parent_set_data.h:48
SCIP_RETCODE PS_parse(SCIP *scip, char *str, ParentSetData **psd)
Parses a ParentSetData structure from a sting.
Definition: parent_set_data.c:606
bucket in a hash table
Definition: parent_set_data.h:38
int * nParentSets
nParentSets[i] is the number of parent sets for element i.
Definition: parent_set_data.h:51
BUCKET ** edge
edge[i][j] is an indicator variable for an edge (in either direction) between i and j...
Definition: parent_set_data.h:57
SCIP_VAR ** vars
vars[i] is ith variable
Definition: parent_set_data.h:41
char ** nodeNames
nodeNames[i] is the name of the ith node
Definition: parent_set_data.h:55
SCIP_RETCODE PS_splitToComponents(SCIP *scip, ParentSetData *original, int *num_components, ParentSetData ***components)
Splits a single set of parent set data in to its strongly connected components.
Definition: parent_set_data.c:427
int * js
js[i] is ith j value
Definition: parent_set_data.h:40
int length
current space allocated for bucket
Definition: parent_set_data.h:43
int ** nParents
nParents[i][k] is the number of parents in the kth parent set for element i.
Definition: parent_set_data.h:52
SCIP_RETCODE PS_specialiseFor(SCIP *scip, ParentSetData *original, int *nodes, int num_nodes, ParentSetData **specialisation)
Creates a subset of parent set data mentioning only the given nodes.
Definition: parent_set_data.c:206
SCIP_RETCODE PS_copyParentSetData(SCIP *scip, ParentSetData *original, ParentSetData **duplicate)
Makes a deep copy of a ParentSetData structure.
Definition: parent_set_data.c:129
int next
all items in bucket has index < next
Definition: parent_set_data.h:42
SCIP_RETCODE PS_deallocateParentSetData(SCIP *scip, ParentSetData **psd, SCIP_Bool releasevars)
Deallocates the memory associated with a ParentSetData structure.
Definition: parent_set_data.c:49
BUCKET ** arrow
arrow[i][j] is an indicator variable for an arrow from j to i
Definition: parent_set_data.h:56
SCIP_RETCODE PS_writeToFile(SCIP *scip, FILE *file, ParentSetData *psd)
Writes a ParentSetData structure to file.
Definition: parent_set_data.c:494