32 #ifndef __PROPERTY_DATA_H__ 33 #define __PROPERTY_DATA_H__ 35 #include <scip/scip.h> SCIP_Bool PR_hasProperty(SCIP *scip, PropertyData *pd, int individual, const char *name)
Does a property data structure have a given property for a given individual?
Definition: property_data.c:553
SCIP_RETCODE PR_setGlobalPropertyFromInt(SCIP *scip, PropertyData *pd, const char *name, int value)
Set a global property to a given value.
Definition: property_data.c:454
SCIP_RETCODE PR_parse(SCIP *scip, char *str, PropertyData **pd)
Parses a PropertyData structure from a sting.
Definition: property_data.c:244
SCIP_RETCODE PR_setPropertyFromArray(SCIP *scip, PropertyData *pd, int individual, const char *name, const char **value, int length)
Set a property for an individual to a given value Value is converted from an array of strings to a st...
Definition: property_data.c:689
SCIP_RETCODE PR_setGlobalPropertyFromRealArray(SCIP *scip, PropertyData *pd, const char *name, SCIP_Real *value, int length)
Set a global property to a given value Value is converted from an array of reals to a string...
Definition: property_data.c:527
SCIP_RETCODE PR_setPropertyFromBool(SCIP *scip, PropertyData *pd, int individual, const char *name, SCIP_Bool value)
Set a property for an individual to a given value Value is converted from a SCIP_Bool to a string...
Definition: property_data.c:671
SCIP_RETCODE PR_setGlobalPropertyFromBool(SCIP *scip, PropertyData *pd, const char *name, SCIP_Bool value)
Set a global property to a given value Value is converted from a SCIP_Bool to a string.
Definition: property_data.c:486
int n
The number of individuals with properties.
Definition: property_data.h:51
char *** property_names
The names of the properties of each individual.
Definition: property_data.h:55
char *** property_values
The values of the properties of each individual.
Definition: property_data.h:57
SCIP_RETCODE PR_setPropertyFromReal(SCIP *scip, PropertyData *pd, int individual, const char *name, SCIP_Real value)
Set a property for an individual to a given value Value is converted from a SCIP_Real to a string...
Definition: property_data.c:654
int num_global
The number of global properties.
Definition: property_data.h:43
SCIP_RETCODE PR_copyPropertyData(SCIP *scip, PropertyData *original, PropertyData **duplicate)
Makes a deep copy of a PropertyData structure.
Definition: property_data.c:108
char * PR_getProperty(SCIP *scip, PropertyData *pd, int individual, const char *name)
Returns the value of a given property for a given individual.
Definition: property_data.c:570
int * num_properties
The number of properties of each individual.
Definition: property_data.h:53
SCIP_Bool PR_hasGlobalProperty(SCIP *scip, PropertyData *pd, const char *name)
Find out whether a string is a global property.
Definition: property_data.c:387
Problem data that is not directly related to the parent sets.
Definition: property_data.h:38
SCIP_RETCODE PR_setProperty(SCIP *scip, PropertyData *pd, int individual, const char *name, const char *value)
Set a property for an individual to a given value.
Definition: property_data.c:585
char ** global_property_names
The names of the global properties.
Definition: property_data.h:45
SCIP_RETCODE PR_setGlobalPropertyFromArray(SCIP *scip, PropertyData *pd, const char *name, const char **value, int length)
Set a global property to a given value Value is converted from an array of strings to a string...
Definition: property_data.c:503
SCIP_RETCODE PR_setPropertyFromInt(SCIP *scip, PropertyData *pd, int individual, const char *name, int value)
Set a property for an individual to a given value Value is converted from an int to a string...
Definition: property_data.c:637
SCIP_RETCODE PR_writeToFile(SCIP *scip, FILE *file, PropertyData *pd)
Writes a PropertyData structure to file.
Definition: property_data.c:178
SCIP_RETCODE PR_setPropertyFromRealArray(SCIP *scip, PropertyData *pd, int individual, const char *name, SCIP_Real *value, int length)
Set a property for an individual to a given value Value is converted from an array of reals to a stri...
Definition: property_data.c:713
char ** global_property_values
The values of the global properties.
Definition: property_data.h:47
SCIP_RETCODE PR_deallocatePropertyData(SCIP *scip, PropertyData **pd)
Deallocates the memory associated with a PropertyData structure.
Definition: property_data.c:44
SCIP_RETCODE PR_setGlobalProperty(SCIP *scip, PropertyData *pd, const char *name, const char *value)
Set a global property to a given value.
Definition: property_data.c:417
char * PR_getGlobalProperty(SCIP *scip, PropertyData *pd, const char *name)
Get the value of a global property.
Definition: property_data.c:402
SCIP_RETCODE PR_setGlobalPropertyFromReal(SCIP *scip, PropertyData *pd, const char *name, SCIP_Real value)
Set a global property to a given value Value is converted from a SCIP_Real to a string.
Definition: property_data.c:470
void PR_initialise(PropertyData *pd)
Initialises a data structure with empty values.
Definition: property_data.c:372