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.
source

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

EvoLP.f_callsFunction
f_calls(res::Result)

Returns number of function evaluation calls of a result.

source
EvoLP.runtimeFunction
runtime(res::Result)

Returns the resulting runtime of the algorithm.

source

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