Package org.powertac.customer.model
Class LpTest
- java.lang.Object
-
- org.powertac.customer.model.LpTest
-
public class LpTest extends Object
- Author:
- jcollins
-
-
Constructor Summary
Constructors Constructor Description LpTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testLpTOU()
Simple tariff eval example.void
testLpTOU_Total()
Simple tariff eval example, constraints on running total only.void
testSimpleLp()
Simple sanity test using the intended form.
-
-
-
Method Detail
-
testSimpleLp
@Test public void testSimpleLp()
Simple sanity test using the intended form.
-
testLpTOU
@Test public void testLpTOU()
Simple tariff eval example. We ignore periodic charges, because those are handled by the TariffEvaluator. We'll just use a simple TOU with daytime rates (8:00-19:00) of 0.15 and night rates (20:00-7:00) of 0.09. Example is 24 hours, starting at the beginning of a midnight shift. The numbers are from the "idle" version of the futureEnergyNeeds test, with an initial charge of 20 kwh. end trk req max sur min total 8 6 256 240 -16+20 236 16 8 0 240 240 236 0 0 192 240 32 428 8 6 256 240 -16 684 We use 5 chargers, 6kW/charger, no battery count constraints, 0.9 charge efficiency.
-
testLpTOU_Total
@Test public void testLpTOU_Total()
Simple tariff eval example, constraints on running total only. We ignore periodic charges, because those are handled by the TariffEvaluator. We'll just use a simple TOU with daytime rates (8:00-19:00) of 0.15 and night rates (20:00-7:00) of 0.09. Example is 24 hours, starting at the beginning of a midnight shift. The numbers are from the "idle" version of the futureEnergyNeeds test, with an initial charge of 20 kwh. end trk req max sur min total 8 6 256 240 -16+20 236 16 8 0 240 240 236 0 0 192 240 32 428 8 6 256 240 -16 684 We use 5 chargers, 6kW/charger, no battery count constraints, 0.9 charge efficiency.
-
-