|
|
| OptimizationDataPoint (const UUID &uuid, const UUID &versionUUID, const std::string &name, const std::string &displayName, const std::string &description, const OptimizationProblem &optimizationProblem, bool complete, bool failed, bool selected, DataPointRunType runType, const std::vector< QVariant > &variableValues, const std::vector< double > &responseValues, const std::vector< double > &objectiveValues, const openstudio::path &directory, const boost::optional< FileReference > &osmInputData, const boost::optional< FileReference > &idfInputData, const boost::optional< FileReference > &sqlOutputData, const boost::optional< runmanager::Job > &topLevelJob, const std::vector< openstudio::path > &dakotaParametersFiles, const std::vector< Tag > &tags, const std::vector< Attribute > &outputAttributes) |
| Constructor provided for deserialization; not for general use. More...
|
|
| OptimizationDataPoint (const UUID &uuid, const UUID &versionUUID, const std::string &name, const std::string &displayName, const std::string &description, const UUID &problemUUID, const boost::optional< UUID > &analysisUUID, bool complete, bool failed, bool selected, DataPointRunType runType, const std::vector< QVariant > &variableValues, const std::vector< double > &responseValues, const std::vector< double > &objectiveValues, const openstudio::path &directory, const boost::optional< FileReference > &osmInputData, const boost::optional< FileReference > &idfInputData, const boost::optional< FileReference > &sqlOutputData, const boost::optional< runmanager::Job > &topLevelJob, const std::vector< openstudio::path > &dakotaParametersFiles, const std::vector< Tag > &tags, const std::vector< Attribute > &outputAttributes) |
| Constructor provided for deserialization; not for general use. More...
|
|
virtual | ~OptimizationDataPoint () |
|
|
OptimizationProblem | optimizationProblem () const |
| Equivalent to .problem().cast<OptimizationProblem>(). More...
|
|
std::vector< double > | objectiveValues () const |
|
| DataPoint (const UUID &uuid, const UUID &versionUUID, const std::string &name, const std::string &displayName, const std::string &description, const Problem &problem, bool complete, bool failed, bool selected, DataPointRunType runType, const std::vector< QVariant > &variableValues, const std::vector< double > &responseValues, const openstudio::path &directory, const boost::optional< FileReference > &osmInputData, const boost::optional< FileReference > &idfInputData, const boost::optional< FileReference > &sqlOutputData, const boost::optional< runmanager::Job > &topLevelJob, const std::vector< openstudio::path > &dakotaParametersFiles, const std::vector< Tag > &tags, const std::vector< Attribute > &outputAttributes) |
| Constructor provided for deserialization; not for general use. More...
|
|
| DataPoint (const UUID &uuid, const UUID &versionUUID, const std::string &name, const std::string &displayName, const std::string &description, const UUID &problemUUID, const boost::optional< UUID > &analysisUUID, bool complete, bool failed, bool selected, DataPointRunType runType, const std::vector< QVariant > &variableValues, const std::vector< double > &responseValues, const openstudio::path &directory, const boost::optional< FileReference > &osmInputData, const boost::optional< FileReference > &idfInputData, const boost::optional< FileReference > &sqlOutputData, const boost::optional< runmanager::Job > &topLevelJob, const std::vector< openstudio::path > &dakotaParametersFiles, const std::vector< Tag > &tags, const std::vector< Attribute > &outputAttributes) |
| Constructor provided for deserialization; not for general use. More...
|
|
virtual | ~DataPoint () |
|
bool | hasProblem () const |
| Returns true if DataPoint has access to the Problem that created it. More...
|
|
Problem | problem () const |
| Returns the Problem used to create/associated with this DataPoint. More...
|
|
UUID | problemUUID () const |
| Returns the UUID of the Problem that created this DataPoint. More...
|
|
boost::optional< UUID > | analysisUUID () const |
| Returns the UUID of the Analysis that parents this DataPoint. More...
|
|
bool | isComplete () const |
| Returns true if the DataPoint has been simulated. More...
|
|
bool | complete () const |
| Returns true if the DataPoint has been simulated. More...
|
|
bool | failed () const |
| Returns true if the DataPoint was simulated, but the simulation failed, or output results could not be retrieved for some other reason. More...
|
|
bool | selected () const |
| Returns true if the DataPoint is selected (to be simulated in the next batch). More...
|
|
DataPointRunType | runType () const |
|
std::vector< QVariant > | variableValues () const |
| Returns the variableValues to be applied in simulating this DataPoint. More...
|
|
std::vector< double > | responseValues () const |
| Returns the value of the response functions for this DataPoint. More...
|
|
openstudio::path | directory () const |
| Run directory for this DataPoint. More...
|
|
boost::optional< FileReference > | osmInputData () const |
| Returns the final OSM file in the workflow, if the DataPoint isComplete() but not failed(), and said file was located by problem(). More...
|
|
boost::optional< FileReference > | idfInputData () const |
| Returns the final IDF file in the workflow, if the DataPoint isComplete() but not failed(), and said file was located by problem(). More...
|
|
boost::optional< FileReference > | sqlOutputData () const |
| Returns the EnergyPlus SqLite output file, if the DataPoint isComplete() but not failed(), and said file was located by problem(). More...
|
|
std::vector< FileReference > | xmlOutputData () const |
| Returns the openstudio::Attribute and openstudio::result::OSResult XML files created associated with this DataPoint, if complete() and not failed(). More...
|
|
boost::optional< model::Model > | model () const |
| If osmInputData() exists, returns the corresponding model::Model. More...
|
|
boost::optional< Workspace > | workspace () const |
| If idfInputData() exists, returns the corresponding Workspace. More...
|
|
boost::optional< SqlFile > | sqlFile () const |
| If sqlOutputData() exists, returns the corresponding SqlFile, which is also available through model()->sqlFile(), if model() exists. More...
|
|
std::vector< Attribute > | outputAttributes () const |
| If xmlOutputData() exists, returns the corresponding openstudio::Attributes. More...
|
|
boost::optional< Attribute > | getOutputAttribute (const std::string &attributeName) const |
| Returns the outputAttributes() element with attributeName, if it exists. More...
|
|
std::vector< Tag > | tags () const |
|
bool | isTag (const std::string &tagName) const |
|
bool | matches (const std::vector< QVariant > &testVariableValues) const |
| Returns true if testVariableValues.size() <= variableValues().size(), and any non-null values match. More...
|
|
boost::optional< runmanager::Job > | topLevelJob () const |
| Returns the top level job associated with this data point. More...
|
|
std::vector< openstudio::path > | dakotaParametersFiles () const |
| Returns vector of dakotaParameterFiles associated with this data point. More...
|
|
void | setSelected (bool selected) |
|
void | setRunType (const DataPointRunType &runType) |
|
void | setDirectory (const openstudio::path &directory) |
| Sets the run directory for this DataPoint. More...
|
|
void | addTag (const std::string &tagName) |
|
void | deleteTag (const std::string &tagName) |
|
bool | updateFromJSON (const std::string &json, boost::optional< runmanager::RunManager > &runManager) |
| Update high level results from json. More...
|
|
bool | updateDetails (boost::optional< runmanager::RunManager > &runManager) |
| Whoever downloaded the zip file should have setDirectory(), and had the file placed in directory() / toPath("dataPoint.zip"). More...
|
|
void | clearFileDataFromCache () const |
| Clear model, workspace, and sqlFile from cache. More...
|
|
void | clearAllDataFromCache () const |
| Clear model, workspace, sqlFile, and outputAttributes from cache. More...
|
|
void | clearResults () |
|
bool | saveJSON (const openstudio::path &p, bool overwrite=false) const |
|
std::ostream & | toJSON (std::ostream &os) const |
|
std::string | toJSON () const |
|
virtual | ~AnalysisObject () |
|
AnalysisObject | clone () const |
| Deep copy. More...
|
|
std::string | name () const |
|
std::string | displayName () const |
|
std::string | description () const |
|
openstudio::UUID | uuid () const |
|
openstudio::UUID | versionUUID () const |
|
bool | isDirty () const |
| Returns true if this object has been changed since its dirty flag was last cleared. More...
|
|
bool | operator== (const AnalysisObject &other) const |
| Compare impls. More...
|
|
bool | operator!= (const AnalysisObject &other) const |
|
bool | uuidEqual (const AnalysisObject &other) const |
|
bool | uuidAndVersionEqual (const AnalysisObject &other) const |
|
boost::optional< AnalysisObject > | parent () const |
|
void | setName (const std::string &newName) |
|
void | setDisplayName (const std::string &newDisplayName) |
|
void | setDescription (const std::string &newDescription) |
|
bool | clearDirtyFlag () |
| Call this method to reset the dirty flag of this object and all its children. More...
|
|
bool | connect (const char *signal, const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection) const |
| Connect signal from this AnalysisObject to slot on receiver. More...
|
|
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *slot=nullptr) const |
|
template<typename T > |
T | cast () const |
| Cast to type T. More...
|
|
template<typename T > |
boost::optional< T > | optionalCast () const |
| Cast to boost::optional<T>. More...
|
|
OptimizationDataPoint is a DataPoint for use with OptimizationProblems .
In addition to all the data provided by DataPoint, OptimizationDataPoint also has objective function values (calculated by OptimizationProblem post-simulation). As a user, OptimizationDataPoints are automatically created for you by calls to OptimizationProblem::createDataPoint either directly, or through the use of an Algorithm. (And Problem::createDataPoint works as well, because of the virtual implementation of the method.)