grape.fault_diagnosis.FaultDiagnosis.fitness_evaluation¶
-
FaultDiagnosis.
fitness_evaluation
(individual, perturbed_nodes, initial_condition)[source]¶ Evaluation of fitness on individual. The individual is a list of conditions for the graph switches (True or False). Edges connecting its predecessors are removed if the switch state is set to ‘False’.
- Parameters
individual (list) – element on which to compute the fitness.
perturbed_nodes (list) – nodes(s) involved in the perturbing event.
initial_condition (dict) – initial status (boolean) for the graph switches.