• Home
  • Search
  • Automatic coding error isolation in computational simulation models : with application to wastewater treatment systems
  • https://doi.org/10.14264/106869Copy DOI Icon

Automatic coding error isolation in computational simulation models : with application to wastewater treatment systems

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

In this thesis, the theory and practice of an innovative coding error isolation method is enhanced and extended. Methods and tools that have been developed to address the limitations of the original approach and to extend its applicability are presented. For dynamic simulations to be credible, verification of the computer code must be an integral part of the modelling process. Simulation verification is a process that ensures simulation code (computerized model) adequately describes the conceptual (e.g. mathematical) model. It should not be confused with simulation validation, which is a process that ensures the computerized model adequately describes reality. Verification of simulation models is an important step in the model development process, but until now it has been a tedious and time-consuming, or even often overlooked, activity. Simulation coding error isolation is a very specific type of software verification. Previous research has shown that it is possible to use the mathematical properties of a model to link the erroneous behaviour of a computerized model to the coding errors involved in the implementation. A novel method developed recently, based on the concept of hack-to-hack testing, has been demonstrated to be capable of isolating coding errors in simulation models. This so-called FEAMAD (FEAture MAtrix based Debugging) method, had a number of limitations. In particular, the feature matrices, which characterise each class of error in the code, were manually generated, which is inefficient and error-prone; the time required to isolate errors increased combinatorially with the size and complexity of the model severely limiting its applicability to complex models. Furthermore, the method was subjected to limited testing in real-world applications. The research for this thesis has been undertaken to address these limitations. Feature matrices are arguably the most important element of the FEAMAD method. Feature matrices are vectors/matrices that characterise the geometric properties of coding errors. They are generated by analysing the model implementation, which determines the effect of coding errors on the model output. Previously these feature matrices were generated by visually inspecting the model implementation and manually creating the matrices. Methods to automatically generate and verify the feature matrices have been developed in this work. The methods utilize code parsing and mutation analysis tools. A prototype of the Automatic Feature MAtrix Generation (AFMAG) method has also successfully been implemented and demonstrated with wastewater treatment models. Maximising the efficiency and effectiveness of the FEAMAD method is important to enable isolation of errors in large, complex models. It has been discovered that the model equations themselves could be 'designed' to ensure that coding errors manifest themselves in a model output in such a way that isolation efficiency and effectiveness is maximised. A method has been developed that employs this idea of model 'design' to maximise isolation efficiency and effectiveness. This method significantly reduces the times required for isolating errors. The FEAMAD method was previously demonstrated with models implemented on a single platform. Replicating the demonstrated effectiveness in cross-platform situations has proven to be much more complicated. The cross-platform data transfer results in significant numerical errors, so much so that the effect of some errors may be masked. A novel solution to the problem, a double state-variable injection method, has been developed and demonstrated to be highly effective. Consequently, the FEAMAD method has been enhanced to debug models implemented in different simulation platforms. Coding error isolation, through comparing model implementations on multiple platforms, represents a major application area of the FEAMAD method. Code parsing and mutation analysis tools have also been used to support a method developed for error threshold optimisation. This method allows error threshold selection to be optimised for particular model implementations. As a whole, this research, and indeed the individual methods that have been developed, provide valuable, practical tools for those working in the modelling and simulation field.

Similar Papers
  • Research Article
  • Citations3

An approach to verifying and debugging simulation models governed by ordinary differential equations: Part 2. Residuals analysis and a case study

  • Apr 01, 2003
  • International Journal for Numerical Methods in Engineering
  • James A Lennox +1
  • Conference Article
  • Citations25

Simulation model development and verification for high voltage GaN HEMT in cascode structure

  • Sep 01, 2013
  • Zhengyang Liu +3
  • Conference Article
  • Citations187

Validation and verification of simulation models

  • Jan 01, 1992
  • Robert G Sargent
  • Research Article
  • Citations15

How Close to Reality is the „as-is” Business Process Simulation Model?

  • Aug 01, 2015
  • Organizacija
  • Bartlomiej Gawin +1
  • Research Article
  • Citations51

Test-driven simulation modelling: A case study using agent-based maritime search-operation simulation

  • Apr 08, 2016
  • European Journal of Operational Research
  • Bhakti Stephan Onggo +1
  • PDF
  • Research Article
  • Citations13

Pedestrian Flow Simulation Validation and Verification Techniques

  • Oct 03, 2014
  • Current Urban Studies
  • Mohamed H Dridi
  • Book Chapter
  • Citations12

A Framework for Verification and Validation of Simulation Models and Applications

  • Jan 01, 2007
  • Zhongshi Wang +1
  • Research Article
  • Citations1

Numerical Simulation and Experimental Verification of the German Roller Rig for Rail Vehicles*

  • Jan 01, 1986
  • Vehicle System Dynamics
  • H Hahn +1
  • Research Article
  • Citations16

Computer-Simulated Fluid Dynamics of Arterial Perfusion in Extracorporeal Circulation: From Reality to Virtual Simulation

  • Jun 01, 2009
  • The International Journal of Artificial Organs
  • Ikuo Fukuda +6
  • Conference Article
  • Citations59

Conceptual modeling in simulation projects by mean adapted idef: an application in a brazilian tech company

  • Dec 05, 2010
  • José Arnaldo Barra Montevechi +5
  • Research Article

A Wasserstein distance-based double-bootstrap method for comparing spatial simulation output

  • May 08, 2025
  • SIMULATION
  • Ashkan Negahban
  • Conference Article
  • Citations52

History of verification and validation of simulation models

  • Dec 01, 2017
  • Robert G Sargent +1
  • Conference Article
  • Citations3

Bias in Parallel and Distributed Simulation Systems

  • Jan 25, 2006
  • T Kiesling +2
  • Conference Article
  • Citations5

Validating the Vertical Dynamic Performance of a Multi-Wheeled Combat Vehicle Computer Simulation Model

  • Jan 01, 2005
  • Matthew J Hillegass +4
  • Research Article
  • Citations20

A comprehensive energy simulation model for energy-water-food nexus system analysis: A case study of the great Karun water resources system

  • Jul 10, 2023
  • Journal of Cleaner Production
  • Masoud Vahabzadeh +4
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.