Difference between revisions of "Draw arrows"
m (Made Influence cycle or loop to be a subheading) |
m |
||
Line 2: | Line 2: | ||
<breadcrumbs>Analytica User Guide > Create and edit a model> {{PAGENAME}}</breadcrumbs> | <breadcrumbs>Analytica User Guide > Create and edit a model> {{PAGENAME}}</breadcrumbs> | ||
− | Use the arrow tool to draw or remove arrows (influences) between variable nodes. Drawing an arrow from variable or function <code>A</code> to <code>B</code> puts <code>A</code> in the list of | + | Use the arrow tool to draw or remove arrows (influences) between variable nodes. Drawing an arrow from variable or function <code>A</code> to <code>B</code> puts <code>A</code> in the list of inputs of <code>B</code>. This makes it conveniently available to select from the inputs menu when creating or editing the definition of <code>B</code> (see [[Creating and Editing Definitions]]). |
− | + | === Draw an arrow=== | |
+ | To draw an arrow, first click the arrow icon [[File:Chapter4 9.png]] in the toolbar to select the arrow tool. In arrow mode, the cursor changes to this arrow icon when over a [[diagram window]]. | ||
# Drag from the origin node (which highlights) to the destination node (which also highlights). | # Drag from the origin node (which highlights) to the destination node (which also highlights). | ||
Line 13: | Line 14: | ||
<tip title="Tip">Some arrows are hidden. They do not appear even when you try to draw them. For example, by default, arrows to and from indexes and functions are not shown. You can change these settings in the [[Diagram Style dialog]] and [[Node Style dialog]].</tip> | <tip title="Tip">Some arrows are hidden. They do not appear even when you try to draw them. For example, by default, arrows to and from indexes and functions are not shown. You can change these settings in the [[Diagram Style dialog]] and [[Node Style dialog]].</tip> | ||
− | + | === Remove an arrow=== | |
* Click the arrow to select it, then press the ''Backspace ''or ''Delete ''key, or | * Click the arrow to select it, then press the ''Backspace ''or ''Delete ''key, or | ||
* Just redraw the arrow from the origin node to the destination node. If the origin variable is used in the [[definition]] of the destination, it asks if you really want to remove it. | * Just redraw the arrow from the origin node to the destination node. If the origin variable is used in the [[definition]] of the destination, it asks if you really want to remove it. | ||
− | <tip title="Tip">When you | + | <tip title="Tip">When you enter or edit a definition ([[Creating or editing a definition]]), Analytica automatically updates the arrows into the variable to reflect those other variables that it mentions (or does not mention).</tip> |
=== Influence cycle or loop === | === Influence cycle or loop === | ||
− | An | + | An '''influence cycle''' or loop occurs when a variable A depends on itself directly, where A → A, or indirectly so that the arrows form a directed circular path, e.g., A → B → C → A. |
If you try to draw arrows that would make a cycle, it warns and prevents you. The exception is if at least one of the variables in the cycle is defined with the [[Dynamic]] function, and contains a time- lagged dependence on another variable in the cycle, shown as a gray arrow (see [[Dynamic Simulation]]), or a variable defined by [[Iterate]] which may depend on itself. | If you try to draw arrows that would make a cycle, it warns and prevents you. The exception is if at least one of the variables in the cycle is defined with the [[Dynamic]] function, and contains a time- lagged dependence on another variable in the cycle, shown as a gray arrow (see [[Dynamic Simulation]]), or a variable defined by [[Iterate]] which may depend on itself. | ||
− | + | === The meaning of influence arrows === | |
+ | When there are arrows between variables in different [[Modules and Libraries|modules]], they are reflected by arrows to and from the module nodes. | ||
[[File:Chapter4 10.png]] | [[File:Chapter4 10.png]] | ||
− | + | Arrow from variable node to variable node<br /> | |
+ | [[File:Chapter4 11.png]] | ||
− | + | Arrow from variable node to module node<br /> | |
+ | [[File:Chapter4 12.png]] | ||
− | + | Arrow from module node to variable node<br /> | |
+ | [[File:Chapter4 13.png]] | ||
− | + | Arrow from module to module<br /> | |
+ | [[File:Chapter4 14.png]] | ||
− | + | Double-headed arrow between module nodes<br /> | |
+ | [[File:Chapter4 15.png]] | ||
− | + | Double-headed arrow between module nodes<br /> | |
− | + | [[File:Chapter4 16.png]] | |
− | |||
− | |||
− | |||
==See Also== | ==See Also== | ||
− | |||
− | |||
* [[Draw arrows between modules]] | * [[Draw arrows between modules]] | ||
+ | * [[Creating_the_Party_Problem_Model#Drawing_arrows_between_variables|Tutorial: Drawing arrows between variables]] | ||
+ | * [[Creating_Models#Drawing_arrows_between_nodes|Tutorial: Drawing arrows between nodes]] | ||
* [[GetArrowsOnDiagram]] | * [[GetArrowsOnDiagram]] | ||
* [[Model building by mouse]] | * [[Model building by mouse]] |
Revision as of 16:47, 23 March 2016
Use the arrow tool to draw or remove arrows (influences) between variable nodes. Drawing an arrow from variable or function A
to B
puts A
in the list of inputs of B
. This makes it conveniently available to select from the inputs menu when creating or editing the definition of B
(see Creating and Editing Definitions).
Draw an arrow
To draw an arrow, first click the arrow icon in the toolbar to select the arrow tool. In arrow mode, the cursor changes to this arrow icon when over a diagram window.
- Drag from the origin node (which highlights) to the destination node (which also highlights).
- Release the mouse button, and it draws the arrow.
To speed up drawing arrows from multiple nodes to a single destination, select all the origin nodes. Then drag from any origin node to the destination node. When you release the mouse, it draws arrows from all the origin nodes.
Remove an arrow
- Click the arrow to select it, then press the Backspace or Delete key, or
- Just redraw the arrow from the origin node to the destination node. If the origin variable is used in the definition of the destination, it asks if you really want to remove it.
Influence cycle or loop
An influence cycle or loop occurs when a variable A depends on itself directly, where A → A, or indirectly so that the arrows form a directed circular path, e.g., A → B → C → A.
If you try to draw arrows that would make a cycle, it warns and prevents you. The exception is if at least one of the variables in the cycle is defined with the Dynamic function, and contains a time- lagged dependence on another variable in the cycle, shown as a gray arrow (see Dynamic Simulation), or a variable defined by Iterate which may depend on itself.
The meaning of influence arrows
When there are arrows between variables in different modules, they are reflected by arrows to and from the module nodes.
Arrow from variable node to variable node
Arrow from variable node to module node
Arrow from module node to variable node
Double-headed arrow between module nodes
Double-headed arrow between module nodes
See Also
- Draw arrows between modules
- Tutorial: Drawing arrows between variables
- Tutorial: Drawing arrows between nodes
- GetArrowsOnDiagram
- Model building by mouse
- Creating and Editing Definitions
Enable comment auto-refresher