1 % testing a switching center
3 % In case i4 = 0, the system is inactive and the incoming energy i6 is redirected to o2. Furthermore, o1 = 0 as the pumped-storage hydropower plant psh should not receive energy.
7 % define control i1 to 1KW
10 % define control i2 to 2KW
13 % define control i3 to 3KW
16 % define control i4 to 0
19 % define control i5 to 0KW
22 % define control i6 to 10KW
26 % expecting i1 to be 1
29 % expecting i2 to be 2
32 % expecting i3 to be 3
35 % expecting i4 to be 0
38 % expecting i5 to be 0
41 % expecting i6 to be 10
44 % and therefore we shall charge with 0KW