pygrenade_vx.network.PlacementAlgorithmEvolutionary

class pygrenade_vx.network.PlacementAlgorithmEvolutionary

Bases: _pygrenade_vx_network.PlacementAlgorithm

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary) -> None

  2. __init__(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary, run_parameters: grenade::vx::network::abstract::EvolutionaryParameters) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

clone(self)

Clone the algorithm.

get_best_in_pops(self)

get_final_result(self)

reset(self)

Reset all members of the algorithm.

run(self, coordinate_system, neuron, resources)

clone(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary)_pygrenade_vx_network.PlacementAlgorithm

Clone the algorithm. Only clones the initial configuration not the current state of the algorithm. New algorithm is in state as after reset(). Since PlacementAlgorithm is the abstract base class the algorithm is passed as a pointer. This allows to pass the algorithm polymorphically to functions.

get_best_in_pops(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary)list[_pygrenade_vx_network.CoordinateSystem]
get_final_result(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary)_pygrenade_vx_network.AlgorithmResult
reset(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary)None

Reset all members of the algorithm. Used during testing.

run(self: _pygrenade_vx_network.PlacementAlgorithmEvolutionary, coordinate_system: _pygrenade_vx_network.CoordinateSystem, neuron: _pygrenade_vx_network.Neuron, resources: _pygrenade_vx_network.ResourceManager)_pygrenade_vx_network.AlgorithmResult