Right, I did a brute-force implementation and, after a bit of tampering with the values (I still don't know any way of calculating the components), thess are the results -- see the attachements. The red waveform, v(s), is the input signal, the blue one, v(i) is the reference and the green one, v(o), the output.
kw is "a weighting factor", but it seems to only have an effect on offset. kp is the DC gain and tau being the time constant. Now, if I wanted the response to be as symetrical as possible, looking like a brace, then tau would have to be something like 20s(!) for a 1s run time. The second screenshot shows this better. the large "S" form v(o) is for tau=20m, the almost symmetrical one (the thinnest) is for tau=20s.
As a practical thought I want to replace a classical PI controller in an inverter stage, voltage mode, with a DC capacitor needed to be regulated. Not that it doesn't work, after all, it's tried and tested over time, but the ripple (2x50Hz, as in the simulation) is superimposing on the rest of the signals, which yields slight distorsions in the output sinewave (3rd harmonics) -- unacceptable, since it's meant to be pure sine. So, if the ripple gets bigger as the load increases, the error wouldn't add up to the output proportionally. This thesis, found online, has some reference to the controller: "Juha Turunen - Series Active Power Filter in Power Conditioning".
So, rather than trying this in the most basic, crude, empyrical way, I'd still like to know if there is somewhere where I can find some explanations and, maybe, some ideas how to implement it practically. Does anyone know where? At this point, I know it's a nonlinear controller, PI-based, but the calculations are foreign to me now so, here I am, asking for some directions.