netlogo

Netlogo HPC CPU Percentage Use Increase

旧街凉风 提交于 2019-12-13 14:06:05
问题 I submit jobs using headless NetLogo to a HPC server by the following code : #!/bin/bash #$ -N r20p #$ -q all.q #$ -pe mpi 24 /home/abhishekb/netlogo/netlogo-5.1.0/netlogo-headless.sh \ --model /home/abhishekb/models/corrected-rk4-20presults.nlogo \ --experiment test \ --table /home/abhishekb/csvresults/corrected-rk4-20presults.csv Below is the snapshot of a cluster queue using: qstat -g c I wish to know can I increase the CQLOAD for my simulations and what does it signify too. I couldn't

How many times should i run computer simulations to conclude one experiment in netlogo?

风格不统一 提交于 2019-12-13 11:04:46
问题 I am working on a model in netlogo which is a statistical physics based model. How many times should i run the simulation and average the results to conclude the study? 回答1: As Marzy points out in comments, there is no definitive answer. Many people will pick the magic numbers 20-30 out of a hat and go with that. A common choice is to do a small number (5-10) runs initially, estimate the variance from them, and then project how large a sample size you would need to bring the margin of error

Running NetLogo headless on HPC, how to increase CPU usage?

别说谁变了你拦得住时间么 提交于 2019-12-13 09:52:07
问题 I was running NetLogo headless on HPC using behaviourspace. Some non-NetLogo other user on the HPC complained to me that I am not utilizing the CPU cores to very little extent and should increase. I don't know exactly know to how to do so, please help. I am guessing renice won't be of any help. Code: #!/bin/bash #$ -N NewPara3-d #$ -q all.q #$ -pe mpi 30 /home/abhishekb/netlogo/netlogo-5.1.0/netlogo-headless.sh \ --model /home/abhishekb/models/Test_results3-d.nlogo \ --experiment 3-d \ -

How do I generate a number in the range between 0.3 < X < 0.7 with netlogo

▼魔方 西西 提交于 2019-12-13 07:04:56
问题 As the title suggest, would hope to generate a random float in the range between 0.3 < x < 0.7. I currently using while loop to check a random float whether its in that range. I was wondering whether there is a better method to do this. Thanks 回答1: 0.3 + random-float 0.4 will give you 0.3 <= x < 0.7. If you really don't want 0.3, I guess you can always loop that one out. I'm not sure if there is a better way. 来源: https://stackoverflow.com/questions/9805064/how-do-i-generate-a-number-in-the

(NetLogo: re-) transformation of turtle xcor/ycor to real-world coords

跟風遠走 提交于 2019-12-13 06:50:05
问题 I have a well functioning NetLogo model of pedestrians in a generic, urban environment loaded from shapefiles - including projection/transformation (See selected code lines below). How do I export the xcor's and ycors of turtles to text files, projected/transformed into the original projection system? Thanks in advance code examples... gis:load-coordinate-system (word "../data/testLines_2.prj") set ODLines gis:load-dataset "../data/testLines_2.shp" setUpEnvelopeExtented ODLines 10 回答1: maybe

Dynamic turtle creation in netlogo 2 [contd..]

≯℡__Kan透↙ 提交于 2019-12-13 05:55:08
问题 In the interface tab i have a slider whose value ranges between 2 & 10. Depending on the value defined by the user using this slider, that many number of turtles should be created. I tried using multiple if statements but there is a problem in the succeeding steps. if (slider-value = 2) [create2] if (slider-value = 3) [create3] if (slider-value = 4) [create4] if (slider-value = 5) [create5] After creating the turtles using the above if conditions, i have to assign additional rules to each

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

how to overtake in a two lane scenario?

☆樱花仙子☆ 提交于 2019-12-13 03:45:36
问题 i have been working a basic over taking a code for a two lane scenario, i have attempted the coding below and i thought that it would work as it is, however cars still wont over take, im not sure if there are contradicting statements. so far this section of coding will accelerate the cars and stop them when a car is in front but for some reason will not move to the other lane. any ideas? let in-lane (patch-set patch-ahead 2 patch-ahead 1.5 patch-ahead 1 ); patch- left-and-ahead 26 1 patch

Running NetLogo on HPC machine: how to specify the number of cores to be used?

我的未来我决定 提交于 2019-12-13 02:23:46
问题 $ wget https://ccl.northwestern.edu/netlogo/5.1.0/netlogo-5.1.0.tar.gz $ tar -xzf netlogo-5.1.0.tar.gz $ ~/netlogo-5.1.0/netlogo-headless.sh \ --model ~/myproject/MyModel.nlogo \ --experiment MyExperiment \ --table ~/myproject/MyNewOutputData.csv Using the above commands to run a netlogo headless on HPC machine. The problem is how to I specify the number of cores to be used or does by default take the maximum avialable? 回答1: A look at http://ccl.northwestern.edu/netlogo/5.1.0/docs

Getting closest link in NetLogo

此生再无相见时 提交于 2019-12-13 02:15:45
问题 What's the best way to get the link closest to a particular point in netlogo? The best would be a link reporter link-distancexy that takes an xcor and ycor and outputs the closest distance from that point to a point on the link. Next best would just be a general reporter closest-link-xy that takes and xcor and ycor and reports the closest link. This problem is complicated by wrapping boundaries, but an imperfect solutions would still be appreciated. 回答1: This function might work for your