pytwinnet.optimization.ga¶ Classes ChannelAllocationGA(channels[, population, ...]) Toy GA for assigning channels (ints) to tx nodes to maximize objective. class pytwinnet.optimization.ga.ChannelAllocationGA(channels, population=30, generations=20, mutation_p=0.1, seed=0)[source]¶ Bases: object Toy GA for assigning channels (ints) to tx nodes to maximize objective. Parameters: channels (List[int]) population (int) generations (int) mutation_p (float) seed (int) channels: List[int]¶ generations: int = 20¶ mutation_p: float = 0.1¶ optimize(twin, node_ids, objective)[source]¶ Return type: Dict[str, Any] Parameters: twin (DigitalTwin) node_ids (List[str]) objective (Objective) population: int = 30¶ seed: int = 0¶