PositionReceiver¶
Full Name
neuroptimiser.core.processes.PositionReceiver
Description
- class PositionReceiver[source]¶
Bases:
AbstractProcess
Position Receiver Process
This process is designed to receive the position and fitness of a unit from outside the bounds and send it to inside the bounds. It manages the input and output ports for position and fitness data, allowing units to communicate their states.
- Inports¶
- p_inInPort
Input port for the position tensor from outside the bounds.
- fp_inInPort
Input port for the fitness tensor from outside the bounds.
- Outports¶
- p_outOutPort
Output port for the position tensor to inside the bounds.
- fp_outOutPort
Output port for the fitness tensor to inside the bounds.
See also
neuroptimiser.core.models.PyPositionReceiverModel
Model implementation of the PositionReceiver process.
- __init__(agent_id, internal_shape, external_shape, **kwargs)[source]¶
Initialise the PositionReceiver with the given parameters.
- Parameters:
agent_id (int) – ID of the agent for which the position receiver is being created.
internal_shape (tuple) – Shape of the internal position and fitness (e.g., (num_dimensions,)).
external_shape (tuple) – Shape of the external position and fitness (e.g., (num_agents, num_dimensions)).
- Keyword Arguments:
**kwargs (dict, optional) – Additional keyword arguments to be passed to the parent class AbstractProcess.