grape.fault_diagnosis.FaultDiagnosis.fitness_evaluation_parallel¶
-
FaultDiagnosis.
fitness_evaluation_parallel
(pop, perturbed_nodes, initial_condition)[source]¶ Wrapper for fitness evaluation. This methods spawns the processes for fitness evaluation and collects the results.
- Parameters
pop (list) – list of individuals.
perturbed_nodes (list) – nodes(s) involved in the perturbing event.
initial_condition (dict) – initial status (boolean) for the graph switches.
- Returns
list of tuples constituted by the index of the individual, the individual itself, and its fitness.
- Return type
list