I am trying to set up pheromone, a patch variable, in addition to the existing patch-variable chemical. This is based off the chemical in the original Ants model by Uri Wilensky. I get this error in setting up: Expected command
to recolor-patch ;; patch procedure [ set pcolor scale-color green chemical 0.1 5 ] [ set pcolor scale-color gray pheromone 0.1 5 ] endCan you help me figure out how to have both variables?
Chemical currently functions by being released by both leaders and followers, diffusing/evaporating, and controlling behavior of followers and foragers through uphill-chemical. I want pheromone to be similar, but released by leaders only and responded to be followers only.
to go ask followers [if any? leaders [uphill-chemical fd 3 pickup-food]] diffuse chemical (diffusion-rate / 100) ask patches [ set chemical chemical * (100 - evaporation-rate) / 100 ;; slowly evaporate chemical recolor-patch ] tick end to pickup-food if color = violet [facexy nest-x nest-y jump 2 set chemical chemical + 60] endOn Dec 3, 2020, at 10:47 AM, Emily W <liftu...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/e6edd678-36a1-4cd2-8969-01e081ae0eean%40googlegroups.com.
Micheal has the correct diagnosis of your problem.
You can visualize a second variable by using the view2.5d extension.
I have attached an example that demonstrates the use of patch height to show a second variable.
The Models Library has an example 2.5d Patch View Example that uses diffusion, but bases the height on the pcolor, not a second variable.
I hope this is helpful, and let the list know if you have further questions.
Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
To view this discussion on the web visit
https://groups.google.com/d/msgid/netlogo-users/48BF9EDE-CEB8-4FBE-B866-60B4D612AA7B%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/6989B64B-A4F9-476C-AC2B-FCDE0D62244B%40ads.northwestern.edu.
--
On Dec 10, 2020, at 9:27 AM, James Steiner <grego...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/CADiHOG60oqH7r%2BGm2RuTH8uFGyAP8YcgBL0JBYYjdsCLDji0uw%40mail.gmail.com.
What do you suggest I do?On Tue, Dec 15, 2020 at 8:27 AM Emily Warsavage <liftu...@gmail.com> wrote:Thanks! In trying the code in my model, I'm getting an error message for set pcolor RG pcolor-1 pcolor-2, since the original code had set pcolor RGB pcolor-1-pcolor-2 pcolor-3.Emily W
You received this message because you are subscribed to a topic in the Google Groups "netlogo-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netlogo-users/gjchsUi-PnY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/CADiHOG60oqH7r%2BGm2RuTH8uFGyAP8YcgBL0JBYYjdsCLDji0uw%40mail.gmail.com.