1 % testing a control center
2 % charge pumpspeicherkraftwerk
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 half_full.
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.
10 % our plant's max values: min + max wind hardcoded (5-40)
11 c_max(f,60). c_max(w,15). c_max(psh,20). w_charge(psh,30).
15 % define control i1/L_cur to 20KW
18 % define control i2/L_demand to 10KW
21 % define control i3/Sstorage to half_full
24 % define control i4/Swind to 0
29 % expecting i1 to be 20
32 % expecting i2 to be 10
35 % expecting i3 to be half_full
36 expect_c(c,i3,half_full).
38 % expecting i4 to be 0
50 % do we enable the switching station?
53 % and we charge out pumpspeicherkraftwerk with 10KW