GOBNILP
f164d83
|
Contains metadata relating to the problem that is not necessarily part of the LP that will be solved. More...
Macros | |
#define | CONSHDLR_NAME "metadata" |
The name of this 'constraint handler'. More... | |
#define | PARENT_SET_NAME "parent set data" |
The name of the 'constraint' referring to parent set data. More... | |
#define | PEDIGREE_NAME "pedigree data" |
The name of the 'constraint' referring to pedigree data. More... | |
#define | PROPERTY_NAME "property data" |
The name of the 'constraint' referring to property data. More... | |
Functions | |
static SCIP_RETCODE | createBlankConstraint (SCIP *scip, const char *name) |
Creates a constraint with unusual settings that should mean it is never called. More... | |
static SCIP_RETCODE | getConshdlrDataIfExists (SCIP *scip, SCIP_CONSHDLRDATA **conshdlrdata) |
Gets the data associated with the constraint if it has already been set. More... | |
ParentSetData * | MD_getParentSetData (SCIP *scip) |
Gets the parent set information associated with the problem. More... | |
PedigreeData * | MD_getPedigreeData (SCIP *scip) |
Gets the pedigree information associated with the problem. More... | |
PropertyData * | MD_getPropertyData (SCIP *scip) |
Gets the property information associated with the problem. More... | |
SCIP_RETCODE | MD_initialiseMetadata (SCIP *scip) |
Initialised the metadata, so that information can be stored in it. More... | |
SCIP_RETCODE | MD_setParentSetData (SCIP *scip, ParentSetData *psd) |
Sets the parent set data associated with the problem. More... | |
SCIP_RETCODE | MD_setPedigreeData (SCIP *scip, PedigreeData *pd) |
Sets the pedigree data associated with the problem. More... | |
SCIP_RETCODE | MD_setPropertyData (SCIP *scip, PropertyData *prop) |
Sets the property data associated with the problem. More... | |
static | SCIP_DECL_CONSCHECK (consCheckMetadata) |
Unneeded fundamental callback method, which will always succeed. More... | |
static | SCIP_DECL_CONSENFOLP (consEnfolpMetadata) |
Unneeded fundamental callback method, which will always succeed. More... | |
static | SCIP_DECL_CONSENFOPS (consEnfopsMetadata) |
Unneeded fundamental callback method, which will always succeed. More... | |
static | SCIP_DECL_CONSFREE (consFreeMetadata) |
Frees the metadata held when the program exits. More... | |
static | SCIP_DECL_CONSLOCK (consLockMetadata) |
Unneeded fundamental callback method, which will always succeed. More... | |
static | SCIP_DECL_CONSPARSE (consParseMetadata) |
Parses the metadata returned from a .cip file and stores it. More... | |
static | SCIP_DECL_CONSPRINT (consPrintMetadata) |
Prints the metadata to a .cip file as a fake constraint entry. More... | |
Contains metadata relating to the problem that is not necessarily part of the LP that will be solved.
At present, the information stored is that of what family sets exist, which variable is associated with each and the names of each node.
This information is stored as a constraint. However, it puts no limitations on the problem and in fact should never be called. The reason for storing this in a constraint is so that the information contained can be written to and read from .cip format files in order to preserve the information needed if the problem is saved in this way.
#define CONSHDLR_NAME "metadata" |
The name of this 'constraint handler'.
Referenced by createBlankConstraint(), getConshdlrDataIfExists(), MD_getParentSetData(), MD_getPedigreeData(), MD_getPropertyData(), and MD_initialiseMetadata().
#define PARENT_SET_NAME "parent set data" |
The name of the 'constraint' referring to parent set data.
Referenced by MD_setParentSetData(), SCIP_DECL_CONSPARSE(), and SCIP_DECL_CONSPRINT().
#define PEDIGREE_NAME "pedigree data" |
The name of the 'constraint' referring to pedigree data.
Referenced by MD_setPedigreeData(), SCIP_DECL_CONSPARSE(), and SCIP_DECL_CONSPRINT().
#define PROPERTY_NAME "property data" |
The name of the 'constraint' referring to property data.
Referenced by MD_setPropertyData(), SCIP_DECL_CONSPARSE(), and SCIP_DECL_CONSPRINT().
|
static |
Creates a constraint with unusual settings that should mean it is never called.
scip | The SCIP instance the constaint features in. |
name | The name to give the constraint. |
References CONSHDLR_NAME.
Referenced by MD_setParentSetData(), MD_setPedigreeData(), and MD_setPropertyData().
|
static |
Gets the data associated with the constraint if it has already been set.
scip | The SCIP instance the constraint features in. |
conshdlrdata | A pointer to return the data. |
References CONSHDLR_NAME.
Referenced by MD_setParentSetData(), MD_setPedigreeData(), and MD_setPropertyData().
ParentSetData* MD_getParentSetData | ( | SCIP * | scip | ) |
Gets the parent set information associated with the problem.
Note that this will return the actual stored data structure, not a copy.
scip | The SCIP instance the metadata belongs to. |
References CONSHDLR_NAME.
Referenced by BN_addMECNonRepetitionConstraint(), BN_addNonRepetitionConstraint(), BN_doIterativePrint(), BN_printcountsols(), BN_printScores(), BN_readProblem(), and SCIP_DECL_HEUREXEC().
PedigreeData* MD_getPedigreeData | ( | SCIP * | scip | ) |
Gets the pedigree information associated with the problem.
Note that this will return the actual stored data structure, not a copy.
scip | The SCIP instance the metadata belongs to. |
References CONSHDLR_NAME.
Referenced by assignSexVariables(), PD_addPedigreeSpecificConstraints(), PD_getCurrentPedigreeVarValues(), and PD_printSolutionPedigreeFormat().
PropertyData* MD_getPropertyData | ( | SCIP * | scip | ) |
Gets the property information associated with the problem.
Note that this will return the actual stored data structure, not a copy.
scip | The SCIP instance the metadata belongs to. |
References CONSHDLR_NAME.
SCIP_RETCODE MD_initialiseMetadata | ( | SCIP * | scip | ) |
Initialised the metadata, so that information can be stored in it.
This function must be called before attempting to add data using MD_setParentSetData().
scip | The SCIP instance to which the metadata will belong. |
References CONSHDLR_NAME.
Referenced by BN_includePlugins().
SCIP_RETCODE MD_setParentSetData | ( | SCIP * | scip, |
ParentSetData * | psd | ||
) |
Sets the parent set data associated with the problem.
This method should only be called once, when the metadata first becomes available for storage. If the information needs changing at a later date, call MD_getParentSetData() and modify the data structure directly.
scip | The SCIP instance the metdata relates to. |
psd | The parent set data for the problem |
References createBlankConstraint(), getConshdlrDataIfExists(), PARENT_SET_NAME, and PS_copyParentSetData().
Referenced by readProblemInNonCIPFormat().
SCIP_RETCODE MD_setPedigreeData | ( | SCIP * | scip, |
PedigreeData * | pd | ||
) |
Sets the pedigree data associated with the problem.
This method should only be called once, when the metadata first becomes available for storage. If the information needs changing at a later date, call MD_getPedigreeData() and modify the data structure directly.
scip | The SCIP instance the metdata relates to. |
pd | The pedigree data for the problem |
References createBlankConstraint(), getConshdlrDataIfExists(), PE_copyPedigreeData(), and PEDIGREE_NAME.
Referenced by PD_addPedigreeSpecificConstraints().
SCIP_RETCODE MD_setPropertyData | ( | SCIP * | scip, |
PropertyData * | prop | ||
) |
Sets the property data associated with the problem.
This method should only be called once, when the metadata first becomes available for storage. If the information needs changing at a later date, call MD_getPropertyData() and modify the data structure directly.
scip | The SCIP instance the metdata relates to. |
prop | The property data for the problem |
References createBlankConstraint(), getConshdlrDataIfExists(), PR_copyPropertyData(), and PROPERTY_NAME.
Referenced by readProblemInNonCIPFormat().
|
static |
Unneeded fundamental callback method, which will always succeed.
|
static |
Unneeded fundamental callback method, which will always succeed.
|
static |
Unneeded fundamental callback method, which will always succeed.
|
static |
Frees the metadata held when the program exits.
References PE_deallocatePedigreeData(), PR_deallocatePropertyData(), and PS_deallocateParentSetData().
|
static |
Unneeded fundamental callback method, which will always succeed.
|
static |
Parses the metadata returned from a .cip file and stores it.
References PARENT_SET_NAME, PE_parse(), PEDIGREE_NAME, PR_parse(), PROPERTY_NAME, and PS_parse().
|
static |
Prints the metadata to a .cip file as a fake constraint entry.
References PARENT_SET_NAME, PE_writeToFile(), PEDIGREE_NAME, PR_writeToFile(), PROPERTY_NAME, and PS_writeToFile().