Changes between Initial Version and Version 5 of Ticket #2152
- Timestamp:
- 2013-06-24T12:59:47Z (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2152
- Property Owner changed from to
- Property Status new → assigned
- Property Priority high → blocker
- Property Summary Find exact times of time events → Handle time events efficiently
-
Ticket #2152 – Description
initial v5 1 The pattern to look for is something like: 2 `time >= pre(nextTimeEvent)` 1 The relations 2 {{{ 3 time >= <discrete_expr> 4 time < <discrete_expr> 5 }}} 6 can be handled as time events without resorting to crossing functions, thus leading to more efficient simulation code (see Modelica Specification 3.2 rev1, sect. 8.5). 3 7 4 An expression with only pre(discrete), constant, or parameter 5 expressions. Then it is always possible to calculate the next exact time 6 of this event indicator. Replace >= with ==, solve for time. If the 7 time is <= current time, no more events occur. 8 We can look for expressions containing only pre(discrete), constant, or parameter expressions. Then it is always possible to calculate the next exact time of this event indicator, by replacing >= (or <) with == and solving for time. 9 10 If time is <= current time, no more events occur, otherwise schedule next time event and deal with it as with sample()