pass::optimise_result Struct Reference

#include <optimiser.hpp>

Collaboration diagram for pass::optimise_result:

Public Member Functions

 optimise_result (const pass::problem &problem, const double acceptable_fitness_value) noexcept
 
bool solved () const
 
arma::vec agent () const
 

Public Attributes

arma::vec normalised_agent
 
double fitness_value
 
const double acceptable_fitness_value
 
const pass::problemproblem
 
arma::uword iterations
 
arma::uword evaluations
 
std::chrono::nanoseconds duration
 

Detailed Description

Created by optimiser::optimise. Stores information about the optimisation.

Constructor & Destructor Documentation

◆ optimise_result()

pass::optimise_result::optimise_result ( const pass::problem problem,
const double  acceptable_fitness_value 
)
noexcept

Member Function Documentation

◆ agent()

arma::vec pass::optimise_result::agent ( ) const

Returns normalised_agent, but mapped to the search space of problem.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ solved()

bool pass::optimise_result::solved ( ) const

Returns true if the problem was solved i.e. if acceptable_fitness_value is reached.

Here is the caller graph for this function:

Member Data Documentation

◆ acceptable_fitness_value

const double pass::optimise_result::acceptable_fitness_value

The acceptable objective (good enough) value of the optimiser.

◆ duration

std::chrono::nanoseconds pass::optimise_result::duration

Total time in nanoseconds (10^-9) the optimiser took to find objective_value.

◆ evaluations

arma::uword pass::optimise_result::evaluations

The total number of times problem.evaluate was called.

◆ fitness_value

double pass::optimise_result::fitness_value

The best found objective value. Is initialised to + infinity.

◆ iterations

arma::uword pass::optimise_result::iterations

The number of iterations executed by the optimiser.

◆ normalised_agent

arma::vec pass::optimise_result::normalised_agent

The best found parameter that was evaluated to fitness_value. Is initialised to NaN in all dimensions. This vector is mapped to the range [0, 1] in all dimensions. To access the agent in problem search space coordinates, use optimise_result::agent().

◆ problem

const pass::problem& pass::optimise_result::problem

The problem that was optimised.


The documentation for this struct was generated from the following files: