abstract class Aitk::AbstractOptimizer

Direct Known Subclasses

Defined in:

aitk/optimization/abstract_optimizer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type, size, &fitness_function : Array(Float64) -> Float64) #

[View source]

Instance Method Detail

abstract def iterate #

[View source]
def iterations : Int32 #

[View source]
def optimize(iterations = nil, period = 1, min_change = nil) #

Iterates give number of times, trying to optimize the solution.


[View source]
def optimize(iterations : Nil | Int = nil, period = 1, min_change : Nil | Number = nil, &) : Array(Float64) #

[View source]
abstract def score #

[View source]
abstract def solution #

[View source]