*2.7. Cosimulation Framework*

The cosimulation method allows coupling different subdomain models, like, for example, power systems and electricity markets, and is currently one of the most used to study the behaviour of modern power grids [26]. Figure 3 depicts the structure of the cosimulation framework, and shows the interaction between the discrete model of the SUC and dynamic model of SDAEs. The software tool DOME [27] takes care of the entire cosimulation, in particular, the exchange of information from one model to the other. Note that each model is solved independently, i.e., the subhourly SUC in Gurobi [28], and SDAEs in the dynamic software tool DOME. Both models communicate together in every time period *t*, e.g., 5 min, by exchanging their outputs as indicated in Equation (5).

On the other hand, the subhourly SUC models uses as an input the forecast of wind and loads, which are obtained based on the realizations of the stochastic processes (utilizing a Monte Carlo method). These realizations (output of SDAEs) define the "reality" that has to be updated to solve the next SUC problem (see Figure 3).

**Figure 3.** Structure of the interaction between the discrete model of the stochastic unit commitment (SUC) and dynamic model of SDAEs.
