![]() checking some conditions etc here and performing the calculations but unsure how to proceed Let best-candidate max-one-of candidates with to financials-kill turtle proceedureĪsk turtles-here I want to extract the breed, vision, metabolism and current sugar balance from each agent in the agentset, perform a calculation using both this information and information about the acting turtle and then eat the 'best' one if they meet certain conditions. I'm having some trouble extracting the relevant information as I'm unfamiliar with the data structures and how to cycle through each individual agent in the agentset. I need to check the attributes of a neighbouring turtle, perform a calculation on it's attributes and then choose if the acting turtle wishes to eat the neighbouring turtle. As far as the course overall is concerned the focus is on agent-based models.I'm building a model loosely based on the Sugarscape model to look at corporate takeovers. NetLogo offers a simple system dynamics framework that allows one to understand how system dynamics models work.Īs far as these two modeling paradigms are concerned, that's about all I want from an alternative. NetLogo does not support discrete event modeling, but as we saw it's easy to build a simple discrete event modeling framework in NetLogo that lets us understand how discrete event modeling works. The task is to ask: If we replace NetLogo with a given alternative platform would it be easier or harder to implement arbitrary Agent-Based models of the sort that can be implemented in NetLogo and that we examined in the course. Showing that some carefully selected NetLogo models can be implemented on the platform you are examining won't cut it. The task is to determine whether all NetLogo models can be implemented easily on a given platform. The task is not to determine whether selected NetLogo models can be implemented on a given platform. Instead look for platforms with similar power and convenience but with fewer of NetLogo's failures. So don't underestimate the power and convenience of NetLogo. It has no other data structures besides AgentSets and Lists. One should be dropped and the other expanded to include the capabilities of both.) It supports AgentSets but no other kinds of sets. (For example ask and foreach are really equivalent. It has too many ways to do the same thing. It actively fights users who attempt to format their code. Its multi-file capabilities are primitive, and it has virtually no mechanisms for breaking code up into modules. Its syntax in which code blocks are indicated with square brackets is both confusing and inconsistent. Its no-shadowing rule rules out variable names one wants to use. It has very bad compile-time and run-time error messages. On the other hand NetLogo as an IDE sucks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |