]> git.somenet.org - pub/jan/ewbs-dlv.git/blob - w.test2.dl
fix connect.dl
[pub/jan/ewbs-dlv.git] / w.test2.dl
1 % testing a windwindmill
2 % noop
3 % In case i1 = 0, it does not produce energy and therefore op = 0.
4
5 windmill(w).
6
7 % define max capacity
8 c_max(w,15).
9
10 % define control i1 to 0KW (we request 0KW)
11 c(w,i1,0).
12
13 % define control iw to 10 windspeed
14 c(w,iw,10).
15
16 % test definition.
17 % expecting i1 to be 0
18 expect_c(w,i1,0).
19
20 % expecting iw to be 10
21 expect_c(w,iw,10).
22
23 % and therefore we shall produce 0KW
24 expect_p(w,op,0).
25
26