The invention discloses a method for generating a power and electrical
system diagram, which relates to the technical field of power and electrical, and comprises the following steps of: interacting and collecting data by a user, and then cleaning and verifying. A
system topological structure is constructed based on a
graph theory, a connection relation is defined by using an
algorithm, and a report is generated. A model is established to extract
system features, and structural features are classified and concluded through a clustering
algorithm. And establishing a
layout strategy
library, screening strategies according to characteristics, and setting a user preference interface. And introducing a genetic-
ant colony
hybrid algorithm, defining indexes, and dynamically adjusting parameters according to system and user preferences to optimize the
layout. According to the method for generating the
electric power system diagram, an accurate
system structure feature analysis model is constructed, exclusive
layout strategies are matched for different systems, an improved genetic-
ant colony
hybrid algorithm is used for optimizing the diagram layout, the constraint of a local optimal solution is broken, and a user preference
deep learning and real-time feedback mechanism is established; according to user operation habits and aesthetic demands, the layout effect is continuously optimized, so that a high-quality system diagram is generated.