Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.62 KB

File metadata and controls

42 lines (32 loc) · 1.62 KB

"IncludePartialGenerations"

In case partial generations were produced, they can be automatically dropped by setting "IncludePartialGenerations" to False. Compare for instance

In[] := WolframModel[{{1, 2}} -> {{1, 3}, {1, 3}, {3, 2}},
 {{1, 1}}, <|"MaxEvents" -> 42|>]

Out[] = WolframModelEvolutionObject[... Generations: 4...5, Events: 42 ...]

with

In[] := WolframModel[{{1, 2}} -> {{1, 3}, {1, 3}, {3, 2}},
 {{1, 1}}, <|"MaxEvents" -> 42|>,
 "IncludePartialGenerations" -> False]

Out[] = WolframModelEvolutionObject[... Generations: 4, Events: 40 ...]

One neat use of this is producing a uniformly random evolution for a complete number of generations:

In[] := WolframModel[{{1, 2, 3}, {2, 4, 5}} ->
  {{6, 6, 3}, {2, 6, 2}, {6, 4, 2}, {5, 3, 6}},
 {{1, 1, 1}, {1, 1, 1}}, <|"MaxEvents" -> 10000|>, "FinalStatePlot",
 "EventOrderingFunction" -> "Random",
 "IncludePartialGenerations" -> False]

Out[] = ... hypergraph plot showing a result of random evolution after a complete number of generations ...