1 % testing a control center
2 % normal operation: windfail + pumpspeicherkraftwerk + fuel plant
3 % In case that L cur < L demand, the control station uses plants with the following priority with respect to their maximal capacity C x with x 2 fpsh; w; fg:
5 % 2. pumped-storage hydropower plant psh, and
6 % 3. fossil-fuel power station f.
7 % The pumped-storage hydropower plant psh can only be used if its storage (indicated via the input i3) is not empty.
8 % The windmill w can only be used under certain circumstances; namely, when the wind speed (which is received on input i4) is between 5 and 40.
11 caloric_plant(f). windmill(w). storage_plant(psh).
13 % our plant's max values: min + max wind hardcoded (5-40)
14 c_max(f,60). c_max(w,15). c_max(psh,20). charge_max(psh,30).
18 % define control i1/L_cur to 10KW
21 % define control i2/L_demand to 60KW
24 % define control i3/Sstorage to half_full
27 % define control i4/Swind to 50
32 % expecting i1 to be 10
35 % expecting i2 to be 60
38 % expecting i3 to be half_full
39 expect_c(c,i3,half_full).
41 % expecting i4 to be 50
53 % do we enable the switching station?
56 % and we charge out pumpspeicherkraftwerk with 0KW