I have got this model of the D-statcom which I am trying to implement from this paper Analysis of shunt active powerfilter with unit template method
I have created a model as show below
The controller set up is show below .
No matter what i do the dc value is not matching the refrence value (no matter what the value of PI controller) .
The complete model can be downloaded from here MATLAB MODEL OF D-statcom