This model demonstrates how to set up an association between submodel instances using a data file containing pairs of instances.
Equations in ../Desktop
IDa = [1,2,3]
IDb = [2,3,4]
Equations in Node
ID = index(1)
Equations in Arc
cond1 = (any(ID == [IDa]and ID_0 == [IDb])or any(ID == [IDb]and ID_0 == [IDa]))
where
ID = ../Node/ID (from Node in role1)
ID_0 = ../Node/ID (from Node in role2)
[IDa] = ../IDa
Attachment | Size |
---|---|
data_specified_assoc2.sml | 28.04 KB |