Skip to content

Group math operations are not reliable over restarts #34

@splatch

Description

@splatch

I've found that math function calls SUM, MIN, MAX, AVG might generate false results due to initialization order or missing state for one or more of grouped items.

Especially for energy or power demand calculation this is an unintended behavior which leads to false results. For example when states of item A, B, C are set the result is correct, but when one of item states is missing (its null) then result, depending on its use, might be invalid.

Proposal to consider - all of math functions to have an extra parameter to decide if groups which use them are fine with a partial calculation. If user decides to not accept partial results then function should return an UNDEF state until all child item states are known.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions