Xoptimise

A library of optimisation functions

StatusName
Array search_brute ( Function ↓compute_fitness, Array ↓mins, Array ↓maxs, Array ↓resolutions )

Brute-force search function that maximises the fitness function. Unlike the search-direct the Brute-force apporoach, calculates the value of hte fitness function for every possible combination within the parameter ranges provided (with the given resolution of course). This method is computationally inefficent but is robust as it will not "get stuck" at a local maximum.

Array search_direct ( Function ↓compute_fitness, Array ↓mins, Array ↓maxs, Array ↓resolutions )

Directional search function that maximises the fitness function. Find an illustration of the search method here


Library Functions

BestSet = Lib.search_brute ( ↓compute_fitness, ↓mins, ↓maxs, ↓resolutions )

Brute-force search function that maximises the fitness function. Unlike the search-direct the Brute-force apporoach, calculates the value of hte fitness function for every possible combination within the parameter ranges provided (with the given resolution of course). This method is computationally inefficent but is robust as it will not "get stuck" at a local maximum.

Parameters:
  • Function ↓compute_fitness - The fitness function
  • Array ↓mins - Array of parameter minimum values in the order they are defined in the fitness function
  • Array ↓maxs - Array of parameter maximum values in the order they are defined in the fitness function
  • Array ↓resolutions - Array of the step sizes for each parameter
Returns: Array BestSet - An array containing the set of parameters resulting in the maximised fitness function
BestSet = Lib.search_direct ( ↓compute_fitness, ↓mins, ↓maxs, ↓resolutions )

Directional search function that maximises the fitness function. Find an illustration of the search method here

Parameters:
  • Function ↓compute_fitness - The fitness function
  • Array ↓mins - Array of parameter minimum values in the order they are defined in the fitness function
  • Array ↓maxs - Array of parameter maximum values in the order they are defined in the fitness function
  • Array ↓resolutions - Array of the step sizes for each parameter
Returns: Array BestSet - An array containing the set of parameters resulting in the maximised fitness function