saealib.LHSInitializer#

class saealib.LHSInitializer(n_init_archive, n_init_population, seed=None)[source]#

Bases: Initializer

Latin Hypercube Sampling Initializer.

Parameters:
  • n_init_archive (int)

  • n_init_population (int)

  • seed (int | None)

n_init_archive#

The number of individuals to initialize in the archive.

Type:

int

n_init_population#

The number of individuals to initialize in the population.

Type:

int

seed#

The seed for the random number generator.

Type:

int | None

Methods

__init__

contract

Return the LHS initializer contract.

initialize

Initialize Population and Archive with LHS samples.

Method Details

LHSInitializer.__init__(n_init_archive, n_init_population, seed=None)[source]#
Parameters:
  • n_init_archive (int)

  • n_init_population (int)

  • seed (int | None)

LHSInitializer.contract()[source]#

Return the LHS initializer contract.

Return type:

ComponentContract

LHSInitializer.initialize(provider, problem)[source]#

Initialize Population and Archive with LHS samples.

Parameters:
  • provider (ComponentProvider) – The component provider instance.

  • problem (Problem) – The problem instance.

Return type:

OptimizationState