Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mux_lookup_table [2011/07/31 18:50]
hermann created
mux_lookup_table [2026/08/28 03:27] (current)
hermann Sync from local documentation review
Line 1: Line 1:
-====== Mux Lookup Table ====== ​+====== Mux Lookup Table ======
  
 ===== Description ===== ===== Description =====
  
-This functor makes lookup table dynamic, feeding ​it back with a lookup table output ​from a model stepIn the beginning ​of the first iteration, it reads the lookup table input from the initial ​ port+Initializes ​loop variable and feeds it back with the lookup table produced by the previous step, letting ​a lookup table carry over from one iteration of loop to the nextAt the start of the first iteration, it reads its initial ​lookup table from Initial. The use of this functor is central to building dynamic models whose variables are updated from one step to the next through feedback.
  
 ===== Inputs ===== ===== Inputs =====
  
-^ Name ^ Type ^ Description ^ +^ Name  ^ Type  ^ Description ​ 
-| Initial ​ | [[ Lookup Table Type|Lookup Table  ​]]  | The initial ​lookup table. ​ | +| Initial ​ | [[Lookup Table Type]] ​ | Initial ​lookup table, used on the first iteration.  | 
-| Feedback ​ | [[Lookup Table Type|Lookup Table  ​]]  | Lookup table generated ​from model step.  |+| Feedback ​ | [[Lookup Table Type]] ​ | Lookup table generated ​by the previous ​model step. This port must be connected to a functor placed later in the same loop, which supplies the lookup table produced by that iteration.  |
  
 ===== Optional Inputs ===== ===== Optional Inputs =====
 +
 +None.
  
 ===== Outputs ===== ===== Outputs =====
  
-^ Name ^ Type ^ Description ^ +^ Name  ^ Type  ^ Description ​ 
-| Table | [[ Lookup Table Type|Lookup Table  ​]]  | The output ​lookup table. ​ |+| Table  | [[Lookup Table Type]] ​ | Lookup table for the current iteration: Initial on the first iteration, and the lookup table received through Feedback on every iteration after that.  |
  
 ===== Group ===== ===== Group =====
Line 22: Line 24:
 [[Functor List#​Control | Control]] [[Functor List#​Control | Control]]
  
-===== Notes ===== +===== Notes ===== 
 + 
 +This functor must always be placed directly inside a loop container, such as [[Repeat]], [[For]], or [[For Each Category]]. Placing it anywhere else reports a warning. 
 + 
 +Feedback should be connected to a functor evaluated later in the same iteration, so that it can supply the lookup table produced by that step. Setting it to a fixed constant reports a warning, since a constant defeats the purpose of feeding a lookup table back from the previous step.
  
-The use of this functor is critical for the development of dynamic models whose variables are dynamically updated ​as a result of the model feedback.+The connection made to the Feedback port is never treated ​as a dependency cycle: ​the model's dependency graph does not consider this functor dependent on whatever is connected to that port.
  
-===== Internal Name ===== +===== Internal Name =====
  
 MuxLookupTable MuxLookupTable