Difference between revisions of "Defining the population control: foxes capture hares"
Davidpaine (talk | contribs) |
Davidpaine (talk | contribs) |
||
Line 11: | Line 11: | ||
4. Double click on Hare capture rate to open its object window. | 4. Double click on Hare capture rate to open its object window. | ||
− | 5. In the Description field type ‘Percentage of hares captured by each fox during a time period.' Press | + | 5. In the Description field type ‘Percentage of hares captured by each fox during a time period.' Press Alt+Enter to go to the definition field. |
Line 20: | Line 20: | ||
[[Image:Object hare capture.jpg]] | [[Image:Object hare capture.jpg]] | ||
− | 7. Select Hares captured. Select Description from the Attribute | + | 7. Select Hares captured. Select Description from the Attribute pulldown menu in the attribute pane. Type ‘Number of hares captured during a time period’. |
[[Image:Foxes and Hares diagram 1.8.jpg]] | [[Image:Foxes and Hares diagram 1.8.jpg]] | ||
Line 26: | Line 26: | ||
8. Draw arrows from both ‘Hares at end’ and ‘Foxes at end’ to ‘Hares captured’. | 8. Draw arrows from both ‘Hares at end’ and ‘Foxes at end’ to ‘Hares captured’. | ||
− | '''Expected: Your diagram should look like the screen shot below. | + | '''Expected: Your diagram should look like the screen shot below.''' |
[[Image:Foxes and Hares diagram 1.9.jpg]] | [[Image:Foxes and Hares diagram 1.9.jpg]] | ||
− | 9. Select Hares captured. Select Definition from the Attribute | + | 9. Select Hares captured. Select Definition from the Attribute pulldown menu, type Dynamic(75,Hare_capture_rate*Hares_at_end[Time-1]*Foxes_at_end[Time-1]). Press alt+enter. |
[[Image:Foxes and Hares diagram 10.jpg]] | [[Image:Foxes and Hares diagram 10.jpg]] | ||
Line 48: | Line 48: | ||
12. Select 'Hares captured' press ctrl+e to open its attribute panel. | 12. Select 'Hares captured' press ctrl+e to open its attribute panel. | ||
− | 13. In the Attribute | + | 13. In the Attribute pulldown menu select Definition. Copy and paste this: Dynamic(75,Min([Hares_at_start-20,Hare_capture_rate*Hares_at_end[Time-1]*Foxes_at_end[Time-1]])) |
− | 14. Drag and drap 2 variable | + | 14. Drag and drap 2 variable nodes, give it a title 'Hares needed by 1 fox' and 'Foxes surviving' |
[[Image:Hares needed by 1 fox.jpg]] | [[Image:Hares needed by 1 fox.jpg]] | ||
Line 56: | Line 56: | ||
15. Click on arrow tool from the tool palette. | 15. Click on arrow tool from the tool palette. | ||
− | 16. Drag arrow tool from 'Hares needed by 1 fox' to 'Foxes | + | 16. Drag arrow tool from 'Hares needed by 1 fox' to 'Foxes surviving' |
17. Drag and drop the mouse from 'Foxes surviving' to 'Foxes at end' to create an arrow. | 17. Drag and drop the mouse from 'Foxes surviving' to 'Foxes at end' to create an arrow. | ||
Line 82: | Line 82: | ||
27. Click on tab key to go down to Description attribute and copy and paste this without the quotes 'Number of foxes surviving a time period, by eating the number of hares captured' | 27. Click on tab key to go down to Description attribute and copy and paste this without the quotes 'Number of foxes surviving a time period, by eating the number of hares captured' | ||
− | 28. Press | + | 28. Press Alt+Enter to move down to Definition field |
29. Key in 'Hares_captured/Hares_needed'. | 29. Key in 'Hares_captured/Hares_needed'. | ||
Line 90: | Line 90: | ||
31. Close Object window. | 31. Close Object window. | ||
− | '''Expected: | + | '''Expected: Diagram looks like the screen shot below''' |
[[Image:Hares needed defined.jpg]] | [[Image:Hares needed defined.jpg]] | ||
Line 108: | Line 108: | ||
37. Click show result button from the tool palette. | 37. Click show result button from the tool palette. | ||
− | '''Expected: | + | '''Expected: Result looks like this ''' |
[[Image:Populations.jpg]] | [[Image:Populations.jpg]] | ||
Line 118: | Line 118: | ||
39. Select 'Edit time' from the 'Definition' menu. | 39. Select 'Edit time' from the 'Definition' menu. | ||
− | 40. | + | 40. ''[DP] No more sequence button in 4.6'' |
+ | 41. Change definition to sequence(1,100,1). | ||
− | + | 42. Press ctrl+r to bring up result and select graph view | |
− | |||
− | + | '''Expected: Result looks like this''' | |
− | '''Expected: | ||
[[Image: Time.png]] | [[Image: Time.png]] |
Revision as of 05:53, 15 December 2014
1. Drag two variable nodes in the diagram, type ‘Hare capture rate’ and ‘Hares captured’ for the title.
2. Draw arrow from ‘Hare capture rate’ to ‘Hares captured’.
3. Draw arrow from 'Hares captured' to 'Hares at end'.
4. Double click on Hare capture rate to open its object window.
5. In the Description field type ‘Percentage of hares captured by each fox during a time period.' Press Alt+Enter to go to the definition field.
6. In the Definition field type ‘25%’, press alt+enter.
Expected: Your object window should look like the screen shot below
7. Select Hares captured. Select Description from the Attribute pulldown menu in the attribute pane. Type ‘Number of hares captured during a time period’.
8. Draw arrows from both ‘Hares at end’ and ‘Foxes at end’ to ‘Hares captured’.
Expected: Your diagram should look like the screen shot below.
9. Select Hares captured. Select Definition from the Attribute pulldown menu, type Dynamic(75,Hare_capture_rate*Hares_at_end[Time-1]*Foxes_at_end[Time-1]). Press alt+enter.
10. Click on the result button.
Expected:Result window should appear.
11. Close the Result window.
11.1 Select Hares at end on the diagram
11.2 In the Attribute panel, edit the definition of Hares at end and change it to ' Hares_at_start - Hares_captured '.
12. Select 'Hares captured' press ctrl+e to open its attribute panel.
13. In the Attribute pulldown menu select Definition. Copy and paste this: Dynamic(75,Min([Hares_at_start-20,Hare_capture_rate*Hares_at_end[Time-1]*Foxes_at_end[Time-1]]))
14. Drag and drap 2 variable nodes, give it a title 'Hares needed by 1 fox' and 'Foxes surviving'
15. Click on arrow tool from the tool palette.
16. Drag arrow tool from 'Hares needed by 1 fox' to 'Foxes surviving'
17. Drag and drop the mouse from 'Foxes surviving' to 'Foxes at end' to create an arrow.
18. Click on edit tool palette again to switch to edit mode
19. Double click on 'Hares needed by 1 fox' node to open it's object window
20. Click on Identifier field and change identifier to 'Hares_needed'
21. Press tab to go to 'Description' field
22. Type 'Number of hares that one fox must capture in a time period to survive'
23. Press tab key again to go down to 'Definition' field
24. Set definition to 10
25. Click on green arrow check box to accept definition. Close the Object window.
26. Double click on 'Foxes surviving' node to open it's object window
27. Click on tab key to go down to Description attribute and copy and paste this without the quotes 'Number of foxes surviving a time period, by eating the number of hares captured'
28. Press Alt+Enter to move down to Definition field
29. Key in 'Hares_captured/Hares_needed'.
30. Press green check button to accept definition.
31. Close Object window.
Expected: Diagram looks like the screen shot below
32. Click on 'Foxes at end'.
33. Press ctrl+e to open it's attribute pane.
34. Key in 'Min([Foxes_surviving,Foxes_at_start])'
35. Click on check button to accept definition
36. Click 'Population' node.
37. Click show result button from the tool palette.
Expected: Result looks like this
38. Click on Foxes at end node again. Press ctrl+e to open it's attribute pane
38.5 Change definition to ' Max([2,Min([Foxes_surviving,Foxes_at_start])]) '
39. Select 'Edit time' from the 'Definition' menu.
40. [DP] No more sequence button in 4.6 41. Change definition to sequence(1,100,1).
42. Press ctrl+r to bring up result and select graph view
Expected: Result looks like this
- Select Populations, click on the result button.
Expected:You should have the same result as the screen shot below
Enable comment auto-refresher