]> git.somenet.org - pub/jan/ewbs-dlv.git/blob - psh.test3.dl
GITOLITE.txt
[pub/jan/ewbs-dlv.git] / psh.test3.dl
1 % testing a pumpspeicherkraftwerk
2 % noop
3 % In case i1 = 0 and i2 = 0, it does not produce energy and therefore op = 0.
4
5 storage_plant(psh).
6
7 % define max capacity
8 c_max(psh,20).
9
10 % define max charging power
11 w_charge(30).
12
13 % define control i1 to 0KW (we request 0KW)
14 c(psh,i1,0).
15
16 % define control i2 to 0KW (we are not charging)
17 p(psh,i2,0).
18
19 % define control is to full
20 c(psh,is,full).
21
22 % test definition.
23 % expecting i1 to be 0
24 expect_c(psh,i1,0).
25
26 % expecting i2 to be 0
27 expect_p(psh,i2,0).
28
29 % expecting is to be full
30 expect_c(psh,is,full).
31
32 % and therefore we shall produce 0KW
33 expect_p(psh,op,0).
34