1 % testing a switching center
2 % system accumilation mode: another test
3 % In case i4 = 1, the system accumulates all incoming energy from the plants (i1, i2, and i3) and from i6 and assigns the sum to o2. Again, o1 = 0 as the pumped-storage hydropower plant psh should not receive energy.
7 % define control i1 to 10KW
10 % define control i2 to 10KW
13 % define control i3 to 10KW
16 % define control i4 to 1
19 % define control i5 to 0KW
22 % define control i6 to 10KW
26 % expecting i1 to be 10
29 % expecting i2 to be 10
32 % expecting i3 to be 10
35 % expecting i4 to be 1
38 % expecting i5 to be 0
41 % expecting i6 to be 10
44 % and therefore we shall charge with 0KW