]> git.somenet.org - pub/jan/ewbs-dlv.git/blob - w.test3.dl
w and f tests and f component.
[pub/jan/ewbs-dlv.git] / w.test3.dl
1 % testing a wind-plant
2 windmill(w).
3
4 % define max capacity
5 c_max(w,20).
6
7 % define control i1 to 5KW (we request 5 KW)
8 c(w,i1,5).
9
10 % define control iw to 0 windspeed
11 c(w,iw,0).
12
13 % we test.
14 % expecting i1 to be 5
15 expect_c(f,i1,5).
16
17 % expecting iw to be 0
18 expect_c(f,iw,0).
19
20 % and therefore we shall produce 10KW
21 expect_p(f,op,0).
22
23