What every agent-based modeller should know about floating point arithmetic

Floating point arithmetic is a subject all too often ignored, yet, for agent-based models in particular, it has the potential to create misleading results, and even to influence emergent outcomes of the model. Using a simple demonstration model, this paper illustrates the problems that accumulated f...

Full description

Saved in:
Bibliographic Details
Published inEnvironmental modelling & software : with environment data news Vol. 21; no. 3; pp. 283 - 309
Main Authors Polhill, J. Gary, Izquierdo, Luis R., Gotts, Nicholas M.
Format Journal Article
LanguageEnglish
Published Elsevier Ltd 01.03.2006
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Floating point arithmetic is a subject all too often ignored, yet, for agent-based models in particular, it has the potential to create misleading results, and even to influence emergent outcomes of the model. Using a simple demonstration model, this paper illustrates the problems that accumulated floating point errors can cause, and compares a number of techniques that might be used to address them. We show that inexact representation of parameter values, imprecision in calculation results, and differing implementations of mathematical expressions can significantly influence the behaviour of the model, and create issues for replicating results, though they do not necessarily do so. None of the techniques offer a failsafe approach that can be applied in any situation, though interval arithmetic is the most promising.
Bibliography:ObjectType-Article-2
SourceType-Scholarly Journals-1
ObjectType-Feature-1
content type line 23
ISSN:1364-8152
DOI:10.1016/j.envsoft.2004.10.011