Skip to content

Commit

Permalink
TestHGTRVHPModelSoftATemperature WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHD committed Sep 22, 2023
1 parent 1228ab4 commit b3cf020
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test/javasrc/localtest/TestHGTRVHPModelSoftATemperature.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,22 @@
/**Test the parameterised Heat Geek TRV-with-HP model with soft A-room temperatures. */
public final class TestHGTRVHPModelSoftATemperature extends TestCase
{
/**Test with 'fix' parameters but otherwise original setup. */
/**Test bungalow with 'fix' parameters but otherwise original setup. */
public static void testWithFixParameters()
{
final HGTRVHPMModelParameterised.ModelParameters fixParams = HGTRVHPMModelParameterised.ModelParameters.FIXES_APPLIED;
final DemandWithoutAndWithSetback originalBungalowDemand = HGTRVHPMModelParameterised.computeBungalowDemandW(fixParams);
// final DemandWithoutAndWithSetback detachedDemand = HGTRVHPMModelParameterised.computeDetachedDemandW(fixParams);
final DemandWithoutAndWithSetback softBungalowDemand = HGTRVHPMModelParameterised.computeSoftATempDemandW(fixParams, true);
// final DemandWithoutAndWithSetback softDetachedDemand = HGTRVHPMModelParameterised.computeSoftATempDemandW(fixParams, true);

// Both heat demand and heat-pump electricity demand are expected to be identical to the original
// without B rooms set back.
assertEquals(originalBungalowDemand.noSetback().heatDemand(), softBungalowDemand.noSetback().heatDemand(), 1.0);
assertEquals(originalBungalowDemand.noSetback().heatPumpElectricity(), softBungalowDemand.noSetback().heatPumpElectricity(), 1.0);


// Both heat demand and heat-pump electricity demand are expected to be strictly lower than the original
// when B rooms are set back and A rooms have soft temperature regulation (weather compensation).
// assertTrue(softBungalowDemand.


// // Both heat demand and heat-pump electricity demand are expected to be strictly lower than the original
// // when B rooms are set back and A rooms have soft temperature regulation (weather compensation).
// assertTrue(originalBungalowDemand.noSetback().heatDemand() > softBungalowDemand.noSetback().heatDemand());
// assertTrue(originalBungalowDemand.noSetback().heatPumpElectricity() > softBungalowDemand.noSetback().heatPumpElectricity());
}

}

0 comments on commit b3cf020

Please sign in to comment.