modelManyEventsManyConditions

Model with many events in when clauses and a when clause with many triggering conditions

Extends from ManyEvents (Model with many events in when clauses).

Information

The model extends ManyEvents. Additionally, a single when clause monitors the changes of the entire e vector, and increases the value of v by one each time any when clause is triggered.

Summing up, the model contains N zero-crossing functions, generates M-1 state events if the simulation lasts 1 second, and contain a when clause triggered by N Boolean conditions.

Parameters

TypeNameDefaultDescription
IntegerN (from ManyEvents)5Number of states and event-generating functions
IntegerM (from ManyEvents)NNumber of events that are actually triggered

Components

TypeNameDefaultDescription
Real[N]x (from ManyEvents)
Boolean[N]e (from ManyEvents)
Integerv