作者: Alan G. Isaac
DOI:
关键词: Extensibility 、 Dilemma 、 General-purpose programming language 、 Programming language 、 Prisoner's dilemma 、 Evaluation strategy 、 Python (programming language) 、 Stochastic game 、 Readability 、 Computer science 、 Artificial intelligence
摘要: This paper is an introduction to agent-based simulation using the Python programming language. The core objective of enable students, teachers, and researchers immediately begin social-science projects in a general purpose language. This facilitated by design features language, which we very briefly discuss. The has tutorial component, in that it enablement-focused therefore strongly application-oriented. As our illustrative application, we choose classic model: the evolutionary iterated prisoner's dilemma. We show how simulate dilemma with code is simple readable yet flexible easily extensible. Despite simplicity code, it constitutes useful extended toolkit. We offer three examples this extensibility: we explore result topology matters for outcomes, we player type evolution affected payoff cardinality, and strategy evaluation procedures can affect persistence. Social science students instructors should find provides adequate background to immediately their own projects. Social researchers will additionally be able to compare simplicity, readability, extensibility code with comparable simulations other languages.