diff options
| author | Hongyu <39747921+HongyuHe@users.noreply.github.com> | 2021-04-12 10:20:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-12 10:20:04 +0200 |
| commit | d08c3a340dee64bfb2925e5f8b59a1193dc2dbcd (patch) | |
| tree | 4a99e111efe545aa033bc6e35fe08f4f4fcdc630 /simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin | |
| parent | 3820ac4d31d6eb04034b85a1b53667d64ce6ba89 (diff) | |
simulator: Add the asymptotic power model from GreenCloud (#114)
This change adds the asymptotic power model that is used in GreenCloud
to the available power models in OpenDC.
Diffstat (limited to 'simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin')
| -rw-r--r-- | simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/power/PowerModelTest.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/power/PowerModelTest.kt b/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/power/PowerModelTest.kt index 439be274..60af0eb0 100644 --- a/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/power/PowerModelTest.kt +++ b/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/power/PowerModelTest.kt @@ -62,6 +62,8 @@ internal class PowerModelTest { Arguments.of(SquarePowerModel(350.0, 200.0), 321.5), Arguments.of(CubicPowerModel(350.0, 200.0), 309.35), Arguments.of(SqrtPowerModel(350.0, 200.0), 342.302), + Arguments.of(AsymptoticPowerModel(350.0, 200.0, 0.3, false), 338.765), + Arguments.of(AsymptoticPowerModel(350.0, 200.0, 0.3, true), 323.072), ) } } |
