|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
A topology where every island is connected to every other island. More...
#include <FullyConnectedTopology.h>
Public Member Functions | |
| FullyConnectedTopology (const std::size_t num_nodes) | |
Constructs a fully connected topology for num_nodes nodes. | |
| internal::NodeLinks | getLinks (const std::size_t node) const override |
Returns all nodes (except node) as both input and output neighbors. | |
Public Member Functions inherited from galib::Topology | |
| virtual | ~Topology ()=default |
| Topology (const std::size_t num_nodes) | |
| Constructs a topology for a specific number of nodes. | |
Additional Inherited Members | |
Protected Member Functions inherited from galib::Topology | |
| std::size_t | getNumNodes () const |
| Returns the total number of nodes in the topology. | |
A topology where every island is connected to every other island.
High connectivity results in rapid convergence as elite individuals spread throughout the archipelago quickly.
Definition at line 16 of file FullyConnectedTopology.h.
|
inlineexplicit |
Constructs a fully connected topology for num_nodes nodes.
Definition at line 19 of file FullyConnectedTopology.h.
|
inlineoverridevirtual |
Returns all nodes (except node) as both input and output neighbors.
| node | Local node ID. |
Implements galib::Topology.
Definition at line 26 of file FullyConnectedTopology.h.
References galib::Topology::getNumNodes(), galib::internal::NodeLinks::neighbors_in, and galib::internal::NodeLinks::neighbors_out.