Systematic Testing of Genetic Algorithms: A Metamorphic Testing based Approach

08/02/2018
by   Janette Rounds, et al.
0

Genetic Algorithms are a popular set of optimization algorithms often used to aid software testing. However, no work has been done to apply systematic software testing techniques to genetic algorithms because of the stochasticity and the lack of known outputs for genetic algorithms. Statistical metamorphic testing is a useful technique for testing programs when the output is unknown or when the program has random elements. In this paper, we identify 17 metamorphic relations for testing a genetic algorithm and show, through mutation testing, that these relations are more effective at finding defects than traditional unit tests based on known outputs. We examined the failure rates of the system-level relations when initialized with various fitness functions. We found three relations failed excessively and we then modified these relations so that they failed less often. We also identified some metamorphic relations for genetic algorithms that are generalizable across different types of evolutionary algorithms and showed that our relations had similar mutation scores between two implementations. This is the first time statistical metamorphic testing has been applied for testing genetic algorithms.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/27/2020

Genetic optimization algorithms applied toward mission computability models

Genetic algorithms are modeled after the biological evolutionary process...
research
05/01/2023

Composite metamorphic relations for integration testing

Metamorphic testing is a testing method for problems without test oracle...
research
07/17/2018

Genetic algorithms in Forth

A method for automatically finding a program (bytecode) realizing the gi...
research
03/17/2021

Towards Automated Metamorphic Test Identification for Ocean System Models

Metamorphic testing seeks to verify software in the absence of test orac...
research
03/26/2014

How Crossover Speeds Up Building-Block Assembly in Genetic Algorithms

We re-investigate a fundamental question: how effective is crossover in ...
research
04/19/2023

Towards Objective-Tailored Genetic Improvement Through Large Language Models

While Genetic Improvement (GI) is a useful paradigm to improve functiona...
research
07/13/2019

Metamorphic Testing of a Deep Learning based Forecaster

In this paper, we present the Metamorphic Testing of an in-use deep lear...

Please sign up or login with your details

Forgot password? Click here to reset