1 % testing a pumpspeicherkraftwerk
3 % In case it holds that i1 = charge, its storages are not full (is not full), and it receives energy (w_charge > i2 > 0), it does not produce energy and therefore op = 0.
10 % define max charging power
13 % define control i1 to charge
16 % define control i2 to 5KW
19 % define control is to empty
23 % expecting i1 to be charge
24 expect_c(psh,i1,charge).
26 % expecting i2 to be 5
29 % expecting is to be empty
30 expect_c(psh,is,empty).
32 % and therefore we shall produce 0KW