Skip to content

← Back to innerloop_iterationscheme

Parallel

Source: Distributed_Design_Optimizer/coordination/innerloop_iterationscheme/Parallel.py

Fully parallel iteration scheme module.

This module provides an iteration scheme where all subsystems are executed simultaneously in parallel.

Classes

Parallel

Inherits from: IterationSchemeBasis

Iteration scheme that executes all subsystems in parallel.

This scheme runs all subsystems simultaneously.

Methods

init(self) → None

Initialize the Parallel iteration scheme.

run_innerloop_jobs_multiprocessing(self, subsystemsIn: List[SubSystemInterface]) → Tuple[List[SubSystemInterface], List[int]]

Execute all inner loop jobs in parallel using multiprocessing.

All subsystems are executed simultaneously using a process pool.

Args:

subsystemsIn: List of subsystems to execute.

Returns:

Tuple containing the list of executed subsystems and their indices.

print_startup_summary(self) → None

Nothing to print.

print_termination_summary(self) → None

Nothing to print.

print_beginning_of_run_innerloop_jobs_multiprocessing(self) → None

Print a banner before executing inner loop jobs with multiprocessing.