1 % testing a pumpspeicherkraftwerk
2 % normal discharge but empty
3 % In case c_max > i1 > 0 and is not empty, it produces energy, so op = i1.
4 % The storage plant can only generate power if it is not empty (is not empty).
11 % define max charging power
14 % define control i1 to 5KW (we request 5KW)
17 % define control i2 to 0KW (we are not charging)
20 % define control is to empty
24 % expecting i1 to be 5
27 % expecting i2 to be 0
30 % expecting is to be empty
31 expect_c(psh,is,empty).
33 % and therefore we shall produce 0KW