MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / modelConsumption

Method modelConsumption

src/model/UtilityBill.cpp:1146–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144 }
1145
1146 boost::optional<double> BillingPeriod::modelConsumption() const {
1147 boost::optional<double> result;
1148 Vector modelConsumptionValues = this->modelConsumptionValues();
1149 if (!modelConsumptionValues.empty()) {
1150 result = sum(modelConsumptionValues);
1151 }
1152 return result;
1153 }
1154
1155 boost::optional<double> BillingPeriod::modelPeakDemand() const {
1156 model::Model model = getImpl<detail::UtilityBill_Impl>()->model();

Callers 4

calibrationResultMethod · 0.45
CVRMSEMethod · 0.45
NMBEMethod · 0.45

Calls 3

sumFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected