Added information on structure of fitness metric functions.

这个提交包含在:
Craig Warren
2015-12-15 17:41:21 +00:00
父节点 8c20c41616
当前提交 8055f1013c

查看文件

@@ -10,9 +10,16 @@ import h5py
from gprMax.constants import floattype from gprMax.constants import floattype
"""This module contains fitness metric functions that can be used with the Taguchi optimisation method.
All fitness functions must take two arguments and return a single fitness value.
The first argument should be the name of the output file
The second argument is a list which can contain any number of additional arguments, e.g. names (IDs) of outputs (rxs) from input file
"""
def fitness_max(filename, outputnames): def fitness_max(filename, outputnames):
"""Return the maximum value from specific outputs in a file. """Return the maximum value from a specific output in the input file.
Args: Args:
filename (str): Name of output file filename (str): Name of output file