Hi,

I woud like to write a model where I switch depending on the state of a few variables within a boolean variable array. That is, I have a model where some nodes have several parents in the layer above; these nodes take different states depending on
whether any of their parents is true (i.e. at least one parent true).

So ideally I would like to use a something like Variable.AnyTrue for boolean variable arrays (together with subarray - the indices of the parents are modelled as observables of a jagged variable array)? Any ideas on how to implement this efficiently? I have
tried to implement the model using .NET arrays of variables rather than variable arrays, but I then run very soon into the System.OutOfMemory exception. How difficult would it be to implement something like a Variable.AnyTrue method (Variable(Boolean[]))
corresponding to the Variable.AllTrue one?

Thanks,

flo