44 explicit EvaluationContext(std::map<std::string, ParameterTypeAndValue> system_parameters,
45 std::map<std::string, double> variables,
65 std::string getSystemParameterValue(
const std::string& key)
const;
67 double getParameterValue(
const std::string& key,
68 const std::string& scenarioGroup,
69 const unsigned scenario,
70 unsigned int hour)
const;
72 ParameterType getParameterType(
const std::string& key)
const;
85 std::map<std::string, ParameterTypeAndValue> parameters_types_and_values_;
90 std::map<std::string, double> variables_;
Represents the context for evaluating expressions.
Definition EvaluationContext.h:35
double getVariableValue(const std::string &key) const
Retrieves the value of a variable.
Definition EvaluationContext.cpp:15
EvaluationContext(std::map< std::string, ParameterTypeAndValue > system_parameters, std::map< std::string, double > variables, Optimisation::LinearProblemApi::ILinearProblemData &data)
Constructs an evaluation context with the specified parameter and variable values.
Definition EvaluationContext.cpp:6
double getSystemParameterValueAsDouble(const std::string &key) const
Retrieves the value of a parameter.
Definition EvaluationContext.cpp:38