GridSearch

class GridSearch(pointsPerLever: Int = 11) : ActionSearch(source)

Score a regular grid over each lever's feasible range, keeping only feasible points. The fallback when the set is continuous or too large to walk.

Constructors

Link copied to clipboard
constructor(pointsPerLever: Int = 11)

Functions

Link copied to clipboard
open override fun best(actions: ActionSet, score: (DoubleArray) -> Double): DoubleArray?

The action minimising score, or null when the set is empty. score is called at most once per candidate and must be pure.