diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-06-16 16:14:39 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-06-16 16:14:39 +0200 |
| commit | 81c3b51169cc5dfafb80abb0cf55abb49646a72a (patch) | |
| tree | 03ab5b05862687496ac6c4e6edbf3bc3066aac79 /opendc-format/src/main | |
| parent | 341e1074b0f47e108e6e3f8cf5b3c20773ab0015 (diff) | |
exp: Fix power tracking for energy experiments
This change fixes an issue where the power in the energy experiments is
always reported as zero due to the changes in commit 652b869.
Diffstat (limited to 'opendc-format/src/main')
2 files changed, 2 insertions, 2 deletions
diff --git a/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20ClusterEnvironmentReader.kt b/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20ClusterEnvironmentReader.kt index cf90da68..bef6b742 100644 --- a/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20ClusterEnvironmentReader.kt +++ b/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20ClusterEnvironmentReader.kt @@ -106,7 +106,7 @@ public class Sc20ClusterEnvironmentReader( // For now we assume a simple linear load model with an idle draw of ~200W and a maximum // power draw of 350W. // Source: https://stackoverflow.com/questions/6128960 - LinearPowerModel(350.0, 200 / 350.0) + LinearPowerModel(350.0, idlePower = 200.0) ) ) } diff --git a/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20EnvironmentReader.kt b/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20EnvironmentReader.kt index c6a19430..2fa1caab 100644 --- a/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20EnvironmentReader.kt +++ b/opendc-format/src/main/kotlin/org/opendc/format/environment/sc20/Sc20EnvironmentReader.kt @@ -84,7 +84,7 @@ public class Sc20EnvironmentReader(input: InputStream, mapper: ObjectMapper = ja // For now we assume a simple linear load model with an idle draw of ~200W and a maximum // power draw of 350W. // Source: https://stackoverflow.com/questions/6128960 - LinearPowerModel(350.0, 200 / 350.0) + LinearPowerModel(350.0, idlePower = 200.0) ) } } |
