agent-based-modeling

How can we change 3D animation object (agents representation) color based on statechart?

混江龙づ霸主 提交于 2021-01-29 16:12:28
问题 I have a person agent who has a 3D representation of a man (default 3D pic of a human from anylogic). Can we change color of that 3D person agent's representation based on states? For example, when a agent moves from state A to B, it will change color from yellow to red. How to do that? I tried with shapeFillColor but anylogic is not detecting that 3D human representation as a shape (like polygons, triangle), statechart is not taking my command. Is it like we can only change the agent's color

Is NetLogo too slow for big simulations? How can I speed up a NetLogo model?

会有一股神秘感。 提交于 2020-01-12 07:47:30
问题 Is NetLogo a good platform for big models (>10,000s of patches, turtles)? How can I speed up a model that runs very slowly? 回答1: We just published an article on execution speed of NetLogo; it is available at: http://jasss.soc.surrey.ac.uk/20/1/3.html The article's main points are (a) NetLogo is not necessarily slow for executing large scientific models, and in fact has speed advantages over some alternatives; and (b) NetLogo models do often execute very slowly at first but can almost always

Agent-based modeling resources [closed]

牧云@^-^@ 提交于 2019-12-31 08:39:10
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I would like to know what kind of toolkits, languages, libraries exist for agent-based modeling and what are the pros/cons of them? Some examples of what I am thinking of are Swarm, Repast, and MASS. 回答1: I found a survey from June 2009 that answer your question: Survey of Agent

Netlogo: Creating Hierarchical (tree) network with correct number of nodes

老子叫甜甜 提交于 2019-12-25 16:09:19
问题 I'm trying to create a 'Hierarchical' or 'Tree' network structure with a parameter expansion rate . At first, one node is placed at the top, and each node in the network is connected to a number of nodes below him equal to expansion rate . Currently my code looks like this: to wire-tree clear-all ask patches [ set pcolor white ] create-nodes 1 [ ; create root node of tree set shape "circle" set color red set branch 0 expand-network rewire-branches ] radial-layout reset-ticks end to expand

Is there a way to create impassable barriers in NetLogo?

烈酒焚心 提交于 2019-12-25 01:58:00
问题 I am attempting to code a path-finding behavior wherein agents will locate an optimal patch in the environment and navigate their way around fences to reach said patch. I've created a patch variable 'f', which is set to 1 to indicate fences and 0 for any other patch. I want to make these fences impassable (i.e. I want them to be patches the agents will not use for movement), but agents still seem to be able to travel on them to some extent and in some cases are even able to fully cross them.

NETLOGO: Storing and using the value of a variable in the last 3 ticks

一世执手 提交于 2019-12-24 10:24:47
问题 I am trying to model a stock market. I am trying to give agents a certain kind of behaviour to base their prediction of the prices on. So basically, every agent predicts the price of the share. In the Setup procedure, a random predicted price is assigned to each agent. As the time passes, the predicted price is supposed to be calculated as follows: total of predicted price of the last 3 periods / 3 I don't know how to approach this issue. I tried using the last command but it does not work. I

assign values to turtles by searching through CSV header row in Netlogo

人盡茶涼 提交于 2019-12-24 07:13:42
问题 I have 3 producers. Each has 200 consumers as turtles who have purchased laptops. All producers sell laptops. The laptops have 3 kinds of features : size of the screen, price, battery life. Each has some levels. For example battery life has 5 hours, 12 hours, 24 hours, 30 hours. Each producer has some information about how consumers have rated these items based on what they have experienced that is stored in a csv file. So the CSV file header is something like this : Consumer 12 13 13.5 14 14

How make a list of cumulative sum in netlogo

旧街凉风 提交于 2019-12-19 04:34:30
问题 How can i make a list of cumulative sum of a other list? i tried it that way: ;;all temperatrue-values around the turtle saved in list set temperature_values (list [(output-heat + 1)^ Freedom] of neighbors) ;;build cumulative value of temperatures and put each value in list let tempsum 0 set tempsum_list [] foreach temperature_values [set tempsum (tempsum + ? ) set tempsum_list fput tempsum tempsum_list ] but it doesn't work. can anyone fix this problem? it says that "+ excepted a input but

How to prevent agents' ability to 'jump' barriers in NetLogo?

萝らか妹 提交于 2019-12-13 03:52:40
问题 I'm asking this question in reference to a previous question answered here: Is there a way to create impassable barriers in NetLogo? A user helpfully suggested a way to generate off-limits patches (i.e. barriers) in NetLogo. However, as he mentioned, agents will still possess the ability to occasionally 'jump' over these barriers if they approach from particular angles. This is an undesirable behavior for my model, as I'm modeling fences and movement, so jumping barriers is unrealistic. I