Reporting results

EvoLP provides a type for reporting results that you can use as the return vale of an algorithm. The type has different data fields conveniently stored in a single variable, which allows for further inspection if desired (for example for post-mortem visualisation and analysis.)

EvoLP.ResultType

A type for reporting results of an algorithm. In order, these are:

  1. the optimum $f(x^*)$
  2. the optimizer $x^*$
  3. the population
  4. the number of iterations
  5. the number of function calls
  6. the runtime.

Some getter functions are also included to obtain specific information about the result.

EvoLP.optimumFunction
optimum(result)

Returns evaluation of solution found $f(x^*)$.

EvoLP.populationFunction
population(res::Result)

Returns the resulting population of the algorithm.

EvoLP.iterationsFunction
iterations(res::Result)

Returns the number of iterations of a result.

EvoLP.f_callsFunction
f_calls(res::Result)

Returns number of function evaluation calls of a result.

EvoLP.runtimeFunction
runtime(res::Result)

Returns the resulting runtime of the algorithm.

All built-in algorithms in EvoLP use the Result as their return value.