simco.nlogo

Simco v0.1

2012/2013/2014/2015

Johannes Weyer, Robin D.  Fink, Fabian Adelt, Andreas Ihrig (TU Dortmund)

Extensions

tablehelpers for tables
arrayhelpers for arrays
stringstring handling
goochange gui-elements
pathdirdirectory handling
filefile handling
statshandling of simulation data, including some basic statistic methods
nwnetlogo’s network extension
profilermeasuring time each functions needs (calling sub-functions included and excluded) as well as number of calls

Includes

setup.nlscontains all setup routines (libs/setup.nls)
variables.nlscontains all breed- and global-variables (libs/variables.nls)
helpers.nlscontains some helper functions (libs/helpers.nls)
helpers-simco.nlscontains some helper functions usable in simco only (libs/helpers-simco.nls)
helpers-visualization.nlscontains code for visual representation of the macro-layer (libs/helpers-visualization.nls)
helpers-visualization-simco.nlscontains code for visual representation of the macro-layer “libs/helpers-visualization.nls”
hubnet.nlscontains code for hubnet features (libs/hubnet.nls)
automated-control.nlscontains routines for the automated control (libs/automated-control.nls)
helpers-SEU.nlscontains routines and helpers for agents’ decision-taking, based on subjective expected utility (SEU) (libs/helpers-SEU.nls)
helpers-input.nlscontains helper functions for reading input files (libs/helpers-input.nls)
helpers-output.nlscontains helper functions for writing output files, generating the respective file-names etc.  (libs/helpers-output.nls)
helpers-file-handling.nlscontains functions to handle files and folders (libs/helpers-file-handling.nls)
helpers-lists.nlscontains functions for basic list operations (libs/helpers-lists.nls)
interactions.nlscontains functions handling all interactions between agents, technologies and infrastructure elements (nodes and edges) (libs/interactions.nls)

Public Domain

To the extent possible under law, the authors have waived all copyright and related or neighboring rights to this model.

Summary
simco.nlogoSimco v0.1
goMain function to run the simulation.
degrade-allDecreases all pay-offs by the global->global-agents-degradation vector for agents, nodes and edges.
agents-runMain function for all agent actions: Entering and leaving nodes and edges and taking decisions about the next node an agent wants to reach.
update-historyUpdates history for all elements of the simulation.
startupStarts the hubnet functions

go

to go

Main function to run the simulation.

degrade-all

to degrade-all

Decreases all pay-offs by the global->global-agents-degradation vector for agents, nodes and edges.  Furthermore, lifetime-values of nodes, edges and technologies are reduced by 1.

agents-run

to agents-run

Main function for all agent actions: Entering and leaving nodes and edges and taking decisions about the next node an agent wants to reach.

Todo

In a future version, this should be triggered not starting at agents, but at infrastructure elements, as the order of agents allowed to take an action may depend on the mode of governance

update-history

to update-history

Updates history for all elements of the simulation.  Should be used once per tick.  Called from go-function, if <save-history?> is true.

startup

to startup

Starts the hubnet functions

to go
Main function to run the simulation.
to degrade-all
Decreases all pay-offs by the global->global-agents-degradation vector for agents, nodes and edges.
vector, contains as much elements as the scenario has dimensions.
Hold the agents.
Hold the nodes.
Hold the edges.
to agents-run
Main function for all agent actions: Entering and leaving nodes and edges and taking decisions about the next node an agent wants to reach.
Holds the agents and information like the technology owned, actual state based on previous actions and variables used for calculate-utility (SEU calculation)
Hold the nodes’ information concerning their characteristics as well as actual values, indicating their state.
to update-history
Updates history for all elements of the simulation.
to startup
Starts the hubnet functions
Setup routines.
Contains all breed- and global-variables.
Helper functions.
Helper functions usable in simco only due to interface variables not present in the simco-net-generator.
Code for visual representation of the macro-layer
This file contains visualiuation code for clients connected via hubnet.
Routines for the manual and automated control.
Handling all SEU functions, dealing with agent’s process of taking decisions.
Helper functions for input.
Handling all output helpers, p.e.
Helper functions to handle files and folders.
Helper functions to handle lists and sets.
Hold the technology objects.
Handling all interactions between agents, technologies and infrastructure elements (nodes and edges).
Close