Event Iteration. At an event instant, including the initial event, the model equations are reinitialized according to the following iteration procedure: known variables:x, t, p unkown variables:˙x, y, m, mpre, c //m pre = value ofmbefore event occured loop solve (1)–(3) for the unknowns, withm pre fixed ifm=m pre then break mpre :=m end loop The iterative process of triggering events and solving the reinitialization problem is called event iteration. It is an example of a so-calledfixed-point procedure,i.e., the iterative process is assumed to converge to afixed point.
Event Iteration. A model featuring event iteration as described in Section 2.4.3 is given if Listing 6. Listing 6: Event iteration example. 1 model EventIteration " Event iterations and initialization " 2 Boolean iev1 ( start= false,fixed = true), 3 ev1 ( start= false,fixed = true), 4 ev2 ( start= false,fixed = true), 5 ev3 ( start= false,fixed = true),