We use a co-simulation platform for implementing smart grid applications, e.g., volt/Var control. In our proposed framework, power system is simulated using an expert simulation tool (we typically consider EPRI's OpenDSS) and optimization/ decision making algorithms are coded in Matlab/C++. Further integration of communication simulation is under development.
OpenDSS is available as a stand-alone executable program as well as an in-process Component Object Model (COM) for inter-process communication and dynamic object creation. In my work, I have studied three types of access methods: 1) COM interface with Matlab, 2) Direct Dynamic-Link Library (DLL) interface with MATLAB, 3) Direct DLL interface as an object using MATLAB. Some of my works that consider such co-simulation platform is listed below:
Fig: Co-simulation platform using OpenDSS and PSO developed in Matlab