2 % EventCache Event caching utilities
for SSA solver optimization
4 % EventCache provides
static methods to create and manage
event caching
5 %
for the Stochastic State-space Analysis (SSA) solver. Event caching
6 % improves performance by storing computed events to avoid redundant
7 % calculations during simulation.
9 % @brief Event caching system
for SSA solver performance optimization
11 % The cache stores mappings of state transitions and their associated
12 % events, enabling faster simulation execution by reusing previously
16 function eventCache = create(enabled,sn)
17 % CREATE Create an
event cache container
19 % @brief Creates a containers.Map
for event caching
if enabled
20 % @param enabled Boolean flag to enable/disable caching
21 % @param sn Network structure containing model information
22 % @
return eventCache containers.Map instance or empty array
26 eventCache = containers.Map(
'KeyType',
'char',
'ValueType',
'any');