NetLogo is divided into three windows: Interface, Info, and Code. In addition, NetLogo contains an extensive models library that provides sample programs from all different disciplines, which is very useful for the purpose of teaching and learning. The language reads like English, making it relatively easy for a layperson to understand the functionality of each line of code. The interface makes it possible for users to interact with the variables within a simulation and visualize the results without having to look at the code itself. For this reason, it is ideally suited for conveying the results of complex simulations to individuals with relatively little knowledge of how to program. You don’t need to know other programming languages to work with and understand the programs designed within NetLogo. It is commonly used by economists, anthropologists, and physicists, just to name a few. The language was heavily influenced by Logo, and is designed for users from many disciplines. It allows users to explore the relationship between micro-level agents and macro-level emergent behaviors that occur. It is ideal for modeling complex systems that contain hundreds or thousands of agents interacting simultaneously. However, flooded? is now false so the code block does not run and they retain their values of plp-deployed-successful? from the previous run through.NetLogo is an open source agent-based modeling tool that is relatively simple to use. Those with plp-adopted? are sent to the plp-reliability-analysis procedure. A flood has just happened, so 77% of the properties with plp-adopted? have true plp-deployed-successful? This time, there is not a flood and all properties have flooded? set to false. Now jump forward in time and 2 (or more) floods have occurred. So, how do you end up with some properties having the combination of false flood? and true plp-deployed-successful?. [ let plp-reliability-factor 0.77īut for the second and later code, it will run and 77% of the properties will have the plp recorded as successful, and the others set to unsuccessful. That will fail the test (did you mean to use >= instead of > ?) and the remainder of the code will not be run. The first time a flood occurs, the number-of-times-flooded is changed from 0 to 1. I also put end bracket on the same line for very short code blocks, but the bracketing is the same as yours. Note that I moved the opening bracket to the beginning of the line to line up the start and end of code blocks. Have a look at this shortened version of your code.
0 Comments
Leave a Reply. |