Skip to content

Chained events do not happen

Issue:

If we have chained events, where a second event triggers based on the changes from a previous event, the second event would not trigger. One possible solution could be to include some kind of event hierachy, where we keep track of if variables changed in one event, is used in another event. This can be preprocessed when the model is installed.

Example:

ddt_A = 0
ddt_B = 0
ddt_C = 0
A(0) = 0
B(0) = 0
C(0) = 0

test_multiple_events.txt

e1 = time>1, A, 1
e2 = A>0, B, 1
e3 = B>0, C, 1

image

test_multiple_events_with_extra_time_check.txt

e1 = time>1, A, 1, dummy, time
e2 = time>dummy && A>0, B, 1
e3 = B>0, C, 1

image

Edited by William Lövfors