From d08c3a340dee64bfb2925e5f8b59a1193dc2dbcd Mon Sep 17 00:00:00 2001 From: Hongyu <39747921+HongyuHe@users.noreply.github.com> Date: Mon, 12 Apr 2021 10:20:04 +0200 Subject: 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. --- .../test/kotlin/org/opendc/simulator/compute/power/PowerModelTest.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'simulator/opendc-simulator/opendc-simulator-compute/src/test') 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), ) } } -- cgit v1.2.3