|
Antares Simulator
Power System Simulator
|
Represents the context for evaluating expressions. More...
#include <EvaluationContext.h>
Classes | |
| struct | CouldNotEvaluateConstantParameter |
Public Member Functions | |
| EvaluationContext (const ModelerStudy::SystemModel::Component *component, const Optimisation::LinearProblemApi::ILinearProblemData *data, const Optimisation::LinearProblemApi::IScenario *scenario) | |
| Constructs an evaluation context with the specified parameter and variable values. More... | |
| double | getSystemParameterValueAsDouble (const std::string &key) const |
| Retrieves the value of a parameter. More... | |
| std::string | getSystemParameterValue (const std::string &key) const |
| double | getParameterValue (const std::string &key, unsigned int year, unsigned int hour) const |
| std::span< const double > | getParameterValue (const std::string &key, unsigned int year, unsigned int firstHour, unsigned int lastHour) const |
| Optimisation::VariabilityType | getParameterType (const std::string &key) const |
| ModelerStudy::SystemModel::ParameterTypeAndValue | getParameter (const std::string &key) const |
| const Optimisation::LinearProblemApi::ILinearProblemData & | data () const |
| const Optimisation::LinearProblemApi::IScenario & | scenario () const |
Represents the context for evaluating expressions.
Stores and provides access to parameter and variable values.
|
explicit |
Constructs an evaluation context with the specified parameter and variable values.
| component | |
| system_parameters | |
| constant_parameters | parameter values. |
| variables | variable values. |
| double Antares::Optimisation::EvaluationContext::getSystemParameterValueAsDouble | ( | const std::string & | key | ) | const |
Retrieves the value of a parameter.
| name | The name of the parameter. |
| std::out_of_range | If the parameter is not found. |