3 % In case c_max > i1 > 0, it produces energy, so op = i1.
4 % The windmill can only generate power if the wind speed iw is between 5 and 40 (including these values).
11 % define control i1 to 5KW (we request 5KW)
14 % define control iw to 10 windspeed
18 % expecting i1 to be 5
21 % expecting iw to be 10
24 % and therefore we shall produce 5KW