Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.14 KB

MinEventInputs.md

File metadata and controls

26 lines (20 loc) · 1.14 KB

MinEventInputs

MinEventInputs and MaxEventInputs are event-selection parameters that control the min and max numbers of input tokens allowed per event. These parameters are useful in systems where rules with variable numbers of inputs are possible, such as MultisetSubstitutionSystem. Compare, for example, MinEventInputs -> 0 (default):

In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] & @
  SetReplaceTypeConvert[{WolframModelEvolutionObject, 2}] @
    GenerateMultihistory[
      MultisetSubstitutionSystem[{a___} :> {Total[{a}]}], {1, 2, 3}, MinEventInputs -> 0, MaxEvents -> 10]

and MinEventInputs -> 2:

In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] & @
  SetReplaceTypeConvert[{WolframModelEvolutionObject, 2}] @
    GenerateMultihistory[
      MultisetSubstitutionSystem[{a___} :> {Total[{a}]}], {1, 2, 3}, MinEventInputs -> 2, MaxEvents -> 10]