Smart controller for grid stabilization in the optoelectric system. Issue 4 (October 2019)