Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.75 KB

File metadata and controls

41 lines (34 loc) · 1.75 KB

"IncludeBoundaryEvents"

"IncludeBoundaryEvents" allows one to include "fake" initial and final events in properties such as "ExpressionsEventsGraph". It does not affect the evolution itself and does not affect the evolution object. It has 4 settings: None , "Initial", "Final" and All.

Here is an example of an "ExpressionsEventsGraph" with the initial and final "events" included:

In[] := WolframModel[<|"PatternRules" -> {a_, b_} :> a + b|>,
  {3, 8, 8, 8, 2, 10, 0, 9, 7}, Infinity]["ExpressionsEventsGraph",
 "IncludeBoundaryEvents" -> All,
 VertexLabels -> Placed[Automatic, After]]

Out[] = ...
Initial event -> {3, 8, 8, 8, 2, 10, 0, 9, 7},
{3, 8} -> Event 1 -> {11},
...,
{27, 28} -> Event 8 -> {55},
{55} -> Final event
...

Properties like "AllEventsList" are affected as well:

In[] := WolframModel[<|"PatternRules" -> {a_, b_} :> a + b|>,
 {3, 8, 8, 8, 2, 10, 0, 9, 7}, Infinity, "AllEventsList",
 "IncludeBoundaryEvents" -> "Final"]
Out[] = {{1, {1, 2} -> {10}}, {1, {3, 4} -> {11}},
 {1, {5, 6} -> {12}}, {1, {7, 8} -> {13}},
 {1, {9, 10} -> {14}}, {1, {11, 12} -> {15}},
 {1, {13, 14} -> {16}}, {1, {15, 16} -> {17}},
 {Infinity, {17} -> {}}}