[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114996930A - Modeling method and device, electronic equipment and storage medium - Google Patents

Modeling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114996930A
CN114996930A CN202210589365.7A CN202210589365A CN114996930A CN 114996930 A CN114996930 A CN 114996930A CN 202210589365 A CN202210589365 A CN 202210589365A CN 114996930 A CN114996930 A CN 114996930A
Authority
CN
China
Prior art keywords
power grid
necessary
memory
grid
business scenario
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210589365.7A
Other languages
Chinese (zh)
Inventor
邱泽坚
吴龙腾
徐春华
陈卉灿
张水平
袁炜灯
张鑫
胡润锋
陈凤超
张锐
刘树安
程涛
王健华
罗松林
黄达区
刘树鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Power Grid Co Ltd
Dongguan Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Dongguan Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Power Grid Co Ltd, Dongguan Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202210589365.7A priority Critical patent/CN114996930A/en
Publication of CN114996930A publication Critical patent/CN114996930A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/04Power grid distribution networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The application discloses a modeling method, a modeling device, electronic equipment and a storage medium, and relates to the technical field of computers. Wherein, the method comprises the following steps: classifying a plurality of power grid entities in a power distribution network database based on a service scene to obtain a data set corresponding to the service scene, wherein the data set comprises at least one necessary power grid entity corresponding to the service scene; acquiring information records of necessary power grid entities from a power distribution grid database; determining a dynamically modelable power grid object from a data set corresponding to a business scene based on the information record; and adopting a JavaScript object representation method to build a model for the dynamically modelled power grid object to obtain a memory resident dynamic model corresponding to the service scene. The technical scheme provided by the application can save the memory and improve the processing efficiency of the calculation program.

Description

一种建模方法、装置、电子设备及存储介质A modeling method, device, electronic device and storage medium

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种建模方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, and in particular, to a modeling method, an apparatus, an electronic device, and a storage medium.

背景技术Background technique

近年来,随着我国国民经济的快速提升,配电网响应用电需求快速发展,其规模、供电质量要求也越来越高。在此条件下,要求对配电网也进行各类分析计算,以解决在不影响供电的情况下,完成配电网的检修、供电调整等日常操作。但是,由于配电网的规模庞大,导致对配电网各类分析计算带来困难,如:一方面配电网建模既要满足各类计算,需要详尽建模造成内存占用过大,另一方面由于规模过大以及数据分散造成计算程序处理效率慢。In recent years, with the rapid improvement of my country's national economy, the distribution network has developed rapidly in response to electricity demand, and its scale and power supply quality requirements have become higher and higher. Under this condition, it is required to carry out various kinds of analysis and calculation on the distribution network to solve daily operations such as maintenance and power supply adjustment of the distribution network without affecting the power supply. However, due to the huge scale of the distribution network, various analysis and calculations of the distribution network are difficult. On the one hand, the processing efficiency of computing programs is slow due to the large scale and scattered data.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种建模方法、装置、电子设备及存储介质,可以节省内存,还可以提高计算程序处理效率。The present application provides a modeling method, apparatus, electronic device and storage medium, which can save memory and improve the processing efficiency of computing programs.

第一方面,本申请提供了一种建模方法,该方法包括:In a first aspect, the present application provides a modeling method, the method comprising:

基于业务场景对配电网数据库中的多个电网实体进行分类,得到所述业务场景对应的数据集,所述数据集包括所述业务场景对应的至少一个必要电网实体;Classifying multiple power grid entities in the distribution network database based on the business scenario, to obtain a data set corresponding to the business scenario, where the data set includes at least one necessary power grid entity corresponding to the business scenario;

从所述配电网数据库中获取所述必要电网实体的信息记录;obtaining information records of the necessary grid entities from the distribution grid database;

基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象;Determine a dynamically modelable power grid object from the data set corresponding to the business scenario based on the information record;

采用JavaScript对象表示法对所述可动态建模的电网对象构建模型,得到所述业务场景对应的内存驻留动态模型。The dynamic modelable grid object is modeled by using JavaScript object notation, and a memory-resident dynamic model corresponding to the business scenario is obtained.

第二方面,本申请提供了一种建模装置,该装置包括:In a second aspect, the present application provides a modeling device, the device comprising:

数据集确定模块,用于基于业务场景对配电网数据库中的多个电网实体进行分类,得到所述业务场景对应的数据集,所述数据集包括所述业务场景对应的至少一个必要电网实体;A data set determination module, configured to classify multiple power grid entities in the distribution network database based on business scenarios, and obtain a data set corresponding to the business scenario, the data set including at least one necessary power grid entity corresponding to the business scenario ;

信息获取模块,用于从所述配电网数据库中获取所述必要电网实体的信息记录;an information acquisition module, configured to acquire the information records of the necessary grid entities from the distribution grid database;

对象确定模块,用于基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象;an object determination module, configured to determine a dynamically modelable power grid object from the data set corresponding to the business scenario based on the information record;

模型构建模块,用于采用JavaScript对象表示法对所述可动态建模的电网对象构建模型,得到所述业务场景对应的内存驻留动态模型。A model building module is used to build a model for the dynamically modelable power grid object by using JavaScript object notation to obtain a memory-resident dynamic model corresponding to the business scenario.

第三方面,本申请提供了一种电子设备,该电子设备包括:In a third aspect, the application provides an electronic device, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请任意实施例所述的建模方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the construction described in any of the embodiments of the present application. model method.

第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本申请任意实施例所述的建模方法。In a fourth aspect, the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and the computer instructions are used to enable a processor to implement the modeling described in any embodiment of the present application when executed. method.

本申请实施例提供了一种建模方法、装置、电子设备及存储介质,该方法包括:基于业务场景对配电网数据库中的多个电网实体进行分类,得到业务场景对应的数据集,数据集包括业务场景对应的至少一个必要电网实体;从配电网数据库中获取必要电网实体的信息记录;基于信息记录从业务场景对应的数据集中确定出可动态建模的电网对象;采用JavaScript对象表示法对可动态建模的电网对象构建模型,得到业务场景对应的内存驻留动态模型。本申请基于业务场景对配电网数据库进行分类整理,得到业务场景对应的必要电网实体和必要字段,进而得到业务场景对应的树形数据结构数据集;再通过设置动态建模条件,从数据集中挑选出占用内存过大的电网实体、使用频度低的电网实体或字段或者重复程度高的电网实体或字段,将其作为可动态建模的电网对象,最后采用JavaScript对象表示法对可动态建模的电网对象构建模型。本申请对可动态建模的电网对象进行动态建模可以节省内存,还可以提高计算程序处理效率。Embodiments of the present application provide a modeling method, device, electronic device, and storage medium. The method includes: classifying multiple power grid entities in a distribution network database based on a business scenario, and obtaining a data set corresponding to the business scenario. The set includes at least one necessary grid entity corresponding to the business scenario; obtains the information records of the necessary grid entity from the distribution network database; determines the dynamic modelable grid object from the data set corresponding to the business scenario based on the information record; uses JavaScript object representation The method builds a model for the power grid objects that can be dynamically modeled, and obtains the memory-resident dynamic model corresponding to the business scenario. This application classifies and sorts the distribution network database based on business scenarios, obtains necessary power grid entities and necessary fields corresponding to the business scenarios, and then obtains a tree-shaped data structure dataset corresponding to the business scenarios; Select grid entities that occupy too much memory, grid entities or fields that are used infrequently, or grid entities or fields with a high degree of repetition, and use them as grid objects that can be dynamically modeled. The grid object of the modulo constructs the model. In the present application, the dynamic modeling of the power grid objects that can be dynamically modeled can save memory, and can also improve the processing efficiency of computing programs.

应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其他特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1为本申请实施例提供的一种建模方法的第一流程示意图;1 is a first schematic flowchart of a modeling method provided by an embodiment of the present application;

图2为本申请实施例提供的业务场景对应数据集的示意图;FIG. 2 is a schematic diagram of a data set corresponding to a business scenario provided by an embodiment of the present application;

图3为本申请实施例提供的一种建模方法的第二流程示意图;3 is a second schematic flowchart of a modeling method provided by an embodiment of the present application;

图4为本申请实施例提供的一种建模装置的结构示意图;FIG. 4 is a schematic structural diagram of a modeling apparatus provided by an embodiment of the present application;

图5是用来实现本申请实施例的一种建模方法的电子设备的框图。FIG. 5 is a block diagram of an electronic device used to implement a modeling method according to an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“目标”以及“原始”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够实施除了在这里图示或描述之外的顺序。此外,术语“包括”、“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", "target" and "original" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used for Describe a particular order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprising", "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

图1为本申请实施例提供的一种建模方法的第一流程示意图,本实施例可适用于对配电网数据进行动态建模的情况。本实施例提供的一种建模方法可以由本申请实施例提供的建模装置来执行,该装置可以通过软件和/或硬件的方式实现,并集成在执行本方法的电子设备中。FIG. 1 is a first schematic flowchart of a modeling method provided by an embodiment of the present application, and this embodiment can be applied to the dynamic modeling of power distribution network data. A modeling method provided in this embodiment may be executed by the modeling apparatus provided in this embodiment of the present application, and the apparatus may be implemented in software and/or hardware, and integrated in an electronic device that executes the method.

参见图1,本实施例的方法包括但不限于如下步骤:Referring to FIG. 1, the method of this embodiment includes but is not limited to the following steps:

S110、基于业务场景对配电网数据库中的多个电网实体进行分类,得到业务场景对应的数据集,数据集包括业务场景对应的至少一个必要电网实体。S110. Classify multiple power grid entities in the distribution network database based on the business scenario, and obtain a data set corresponding to the business scenario, where the data set includes at least one necessary power grid entity corresponding to the business scenario.

其中,业务场景是指配电网在运营过程中的具体的应用场景,例如业务场景可以是配电网检修场景、用电量采集场景等。电网实体是指配电网数据库中某类数据的集合,电网实体包括导电设备等抽象实体,包括馈线、开关、变压器等具体实体,包括端点、连接节点等拓扑实体,包括采集装置、控制终端等二次设备实体,还包括用户、电能计量等营销实体。必要电网实体是指对于某一个业务场景而言,必不可少的重要的电网实体。The business scenario refers to a specific application scenario of the distribution network in the operation process, for example, the business scenario may be a distribution network maintenance scenario, a power consumption collection scenario, and the like. Power grid entity refers to a collection of certain types of data in the distribution network database. Power grid entities include abstract entities such as conductive equipment, including specific entities such as feeders, switches, and transformers, including topological entities such as endpoints and connection nodes, including acquisition devices, control terminals, etc. Secondary equipment entities also include marketing entities such as users and electric energy metering. Necessary grid entities refer to important grid entities that are essential for a business scenario.

可选的,配电网数据库可以是规模庞大的10kV配电网数据库,配电网数据库中电网实体可以遵照IEC61970和IEC61968标准进行信息管理。Optionally, the distribution network database may be a large-scale 10kV distribution network database, and the grid entities in the distribution network database may perform information management in accordance with IEC61970 and IEC61968 standards.

在本申请实施例中,电子设备可以对业务场景进行标注得到对应的场景标签。将场景标签作为根节点,按照不同的场景标签对配电网数据库中的电网实体进行分类,确定出不同场景标签所对应的树形数据结构的数据集。可选的,数据集的结构类型除了树形数据结构之后,还可以是其他的数据结构,在此不进行限定。数据集包括业务场景对应的至少一个必要电网实体,将必要电网实体作为场景标签的子节点,也就是,必要电网实体为根节点(即场景标签)下的子节点。In the embodiment of the present application, the electronic device may mark the business scene to obtain the corresponding scene label. Taking the scene label as the root node, the grid entities in the distribution network database are classified according to the different scene labels, and the data set of the tree data structure corresponding to the different scene labels is determined. Optionally, in addition to the tree data structure, the structure type of the data set may also be other data structures, which are not limited here. The data set includes at least one necessary grid entity corresponding to the business scenario, and the necessary grid entity is regarded as a child node of the scene label, that is, the necessary grid entity is a child node under the root node (ie, the scene label).

可选的,必要电网实体包括至少一个必要字段,将必要字段作为必要电网实体的叶子节点,也就是,必要字段为子节点(即必要电网实体)下的叶子节点。必要字段是指对于某一个电网实体而言,必不可少的重要字段。Optionally, the required grid entity includes at least one required field, and the required field is used as a leaf node of the required grid entity, that is, the required field is a leaf node under a child node (ie, the required grid entity). Required fields refer to important fields that are essential for a grid entity.

进一步的,基于业务场景对配电网数据库中的多个电网实体进行分类,得到业务场景对应的数据集,包括:从业务场景对电网实体需求的角度上,基于业务场景按照第一必要原则从多个电网实体中确定出业务场景对应的至少一个必要电网实体;再对电网实体的字段进行使用分析,按照第二必要原则对必要电网实体中的每个字段进行需求评估,挑选出必要电网实体对应的至少一个必要字段;基于至少一个必要电网实体和至少一个必要字段得到业务场景对应的数据集。其中,第一必要原则是指完成业务场景所对应业务所必须的数量最少实体的集合。第二必要原则是指完成业务场景所对应业务所必须的数量最少字段的集合。Further, classify multiple power grid entities in the distribution network database based on the business scenario, and obtain a data set corresponding to the business scenario, including: from the perspective of the business scenario's demand for power grid entities, based on the business scenario and according to the first necessary principle from the Determine at least one necessary power grid entity corresponding to the business scenario from multiple power grid entities; then perform usage analysis on the fields of the power grid entity, conduct demand assessment for each field in the necessary power grid entity according to the second necessary principle, and select the necessary power grid entity corresponding at least one necessary field; obtain a data set corresponding to the business scenario based on the at least one necessary grid entity and the at least one necessary field. Among them, the first necessary principle refers to the set of the minimum number of entities necessary to complete the business corresponding to the business scenario. The second essential principle refers to the set of the minimum number of fields necessary to complete the business corresponding to the business scenario.

在本申请实施例中,基于业务场景建立场景标签的树形数据结构的根节点。对配电网数据库中的多个电网实体进行遍历,根据业务场景进行评估该电网实体是否是场景必需,如果是必需,则在该场景标签的根节点上增加子节点。对必要电网实体中的具体字段进行遍历,根据业务场景进行评估该字段是否是场景必需,如果是必需,则在该模型的子节点上增加叶子节点。特别地,记录识别的信息(如记录ID、记录名等)必然要列入必需字段。In the embodiment of the present application, the root node of the tree-shaped data structure of the scene label is established based on the business scene. Traverse multiple power grid entities in the distribution network database, and evaluate whether the power grid entity is necessary for the scene according to the business scenario. If it is necessary, add a child node to the root node of the scene label. Traverse the specific fields in the necessary power grid entities, and evaluate whether the field is necessary for the scene according to the business scenario. If it is necessary, add leaf nodes to the child nodes of the model. In particular, record identification information (such as record ID, record name, etc.) must be included in the required fields.

如图2为业务场景对应数据集的示意图,业务场景对应的数据集中包括场景标签(即根节点)、至少一个必要电网实体(即子节点)和至少一个必要字段(即叶子节点)。这样设置的目的在于,在配电网数据库中,对IEC61970和IEC61968标准进行适当裁剪,从而生成业务场景对应的数据集(如树形数据结构),便于对配电网数据库进行管理。Figure 2 is a schematic diagram of a data set corresponding to a business scenario. The data set corresponding to a business scenario includes a scenario label (ie, root node), at least one necessary grid entity (ie, child node) and at least one necessary field (ie, leaf node). The purpose of this setting is to appropriately tailor the IEC61970 and IEC61968 standards in the distribution network database, so as to generate a data set (such as a tree data structure) corresponding to the business scenario, which is convenient for the management of the distribution network database.

可选的,不同的业务场景下的数据集可以用Ecase表达,可以通过如下公式(1)表示所有业务场景下的必要电网实体:Optionally, data sets in different business scenarios can be expressed in E case , and the necessary grid entities in all business scenarios can be represented by the following formula (1):

Figure BDA0003664487750000071
Figure BDA0003664487750000071

式中,E为所有业务场景下的必要电网实体,n为业务场景的索引号,Ecase,n为第n个业务场景下的必要电网实体,U为取并集。In the formula, E is the necessary power grid entity in all business scenarios, n is the index number of the business scenario, Ecase, n is the necessary power grid entity in the nth business scenario, and U is the union set.

S120、从配电网数据库中获取必要电网实体的信息记录。S120: Obtain information records of necessary grid entities from the distribution grid database.

在本申请实施例中,某一电网实体的信息记录可以是与该电网实体相关的任何信息,如历史信息、网站信息等。电子设备向服务器发送必要电网实体的信息获取请求,服务器接收并解析该信息获取请求,将该必要电网实体的信息记录发送至电子设备。In this embodiment of the present application, the information record of a grid entity may be any information related to the grid entity, such as historical information, website information, and the like. The electronic device sends the information acquisition request of the necessary grid entity to the server, and the server receives and parses the information acquisition request, and sends the information record of the necessary grid entity to the electronic device.

S130、基于信息记录从业务场景对应的数据集中确定出可动态建模的电网对象。S130. Determine a dynamically modelable power grid object from the data set corresponding to the business scenario based on the information record.

其中,电网对象可以是电网实体,也可以是字段。可动态建模的电网对象可以为占用内存过大的电网实体,可以是使用频度低的电网实体或字段,也可以为重复程度高的电网实体或字段。示例地,可动态建模的电网对象可以是某个电网实体的所有字段(即整个电网实体),可以是某个电网实体的部分字段(即前述的字段)。The grid object can be a grid entity or a field. The power grid objects that can be dynamically modeled can be power grid entities that take up too much memory, power grid entities or fields that are used infrequently, or power grid entities or fields that are highly repetitive. For example, the power grid object that can be dynamically modeled may be all fields of a certain power grid entity (ie, the entire power grid entity), or may be part of the fields of a certain power grid entity (ie, the aforementioned fields).

在本申请实施例中,经上述S120步骤从配电网数据库中获取到信息记录之后,对信息记录中的所有内容进行遍历,从而判断出是否要进行动态建模处理,得到可动态建模的电网对象。具体的,可以根据信息记录的数量确定电网实体的占用内存,根据占用内存的大小判断该电网实体是否要进行动态建模处理,示例地,若某个电网实体占用内存过大,则对其进行动态建模处理;还可以根据信息记录的字段内容对字段值的重复程度进行统计分析,判断该字段是否要进行动态建模处理,示例地,若某个字段的使用频度低或者重复程度高,则对其进行动态建模处理。In the embodiment of the present application, after the information record is obtained from the distribution network database through the above step S120, all the contents in the information record are traversed, so as to determine whether to perform dynamic modeling processing, and obtain a dynamic modeling grid object. Specifically, the memory occupied by the grid entity can be determined according to the number of information records, and whether the grid entity needs to perform dynamic modeling processing can be determined according to the size of the occupied memory. For example, if a grid entity occupies too much memory, the grid entity will be Dynamic modeling processing; statistical analysis can also be performed on the repetition degree of field values according to the field content of the information record to determine whether the field needs to undergo dynamic modeling processing. For example, if a certain field is used with a low frequency or a high degree of repetition , then perform dynamic modeling processing on it.

可选的,不同的业务场景下的可动态建模的电网对象可以用Dcase表达,可以通过如下公式(2)表示所有业务场景下的可动态建模的电网对象:Optionally, the power grid objects that can be dynamically modeled in different business scenarios can be expressed by D case , and the power grid objects that can be dynamically modeled in all business scenarios can be represented by the following formula (2):

Figure BDA0003664487750000084
Figure BDA0003664487750000084

式中,D为所有业务场景下的可动态建模的电网对象,n为业务场景的索引号,Dcase,n为第n个业务场景下的可动态建模的电网对象,U为取并集。In the formula, D is the power grid object that can be dynamically modeled in all business scenarios, n is the index number of the business scenario, D case, n is the power grid object that can be dynamically modeled in the nth business scenario, and U is the union set.

进一步的,在基于信息记录从业务场景对应的数据集中确定出可动态建模电网对象之后,还包括:将业务场景对应的数据集作为全集;将业务场景对应的可动态建模对象作为子集;基于全集求子集的补集,并将补集作为业务场景对应的可静态建模的电网对象;采用预设编程语言对可静态建模的电网对象构建模型,得到业务场景对应的内存驻留固有模型。其中,可静态建模的电网对象是指对使用频度高且重复程度不高的电网实体或字段。可静态建模的电网对象需满足如下公式(3):Further, after determining the dynamically modelable power grid objects from the data set corresponding to the business scenario based on the information records, the method further includes: taking the data set corresponding to the business scenario as a complete set; taking the dynamically modelable objects corresponding to the business scenario as a subset ; Calculate the complement of the subset based on the complete set, and use the complement as the grid object that can be statically modeled corresponding to the business scenario; use a preset programming language to build a model for the grid object that can be statically modeled, and obtain the memory resident corresponding to the business scenario. Keep the original model. Among them, the grid objects that can be statically modeled refer to grid entities or fields that are frequently used and do not have a high degree of repetition. The grid objects that can be statically modeled must satisfy the following formula (3):

Figure BDA0003664487750000081
Figure BDA0003664487750000081

式中,

Figure BDA0003664487750000082
为所有业务场景下的可静态建模的电网对象,E为所有业务场景下的必要电网实体,D为所有业务场景下的可动态建模的电网对象,
Figure BDA0003664487750000083
表示空集。In the formula,
Figure BDA0003664487750000082
is the grid object that can be modeled statically in all business scenarios, E is the necessary grid entity in all business scenarios, D is the grid object that can be dynamically modeled in all business scenarios,
Figure BDA0003664487750000083
represents the empty set.

S140、采用JavaScript对象表示法对可动态建模的电网对象构建模型,得到业务场景对应的内存驻留动态模型。S140. Use JavaScript object notation to construct a model for a dynamically modelable power grid object, and obtain a memory-resident dynamic model corresponding to the business scenario.

其中,JavaScript对象表示法(JavaScript Object Notation,Json)是一种轻量级的数据交换格式,广泛应用于应用程序异步通讯,比如在Web客户端和服务端通讯中。内存驻留动态模型的数据结构以Json数据格式进行表达,与编程语言无关。Among them, JavaScript Object Notation (JavaScript Object Notation, Json) is a lightweight data exchange format, which is widely used in asynchronous communication of applications, such as in the communication between the Web client and the server. The data structure of the memory-resident dynamic model is expressed in the Json data format, which is independent of the programming language.

进一步的,采用JavaScript对象表示法对可动态建模对象构建模型,得到业务场景对应的内存驻留动态模型,包括:确定可动态建模对象的数据特征;若可动态建模的电网对象中预设数量的电网对象具有同一个数据特征,则按照第一建模方式对预设数量的电网对象构建模型;对可动态建模的电网对象中其他电网对象按照第二建模方式构建模型,从而得到业务场景对应的内存驻留动态模型,其他电网对象为可动态建模的电网对象中除预设数量的电网对象之外的电网对象。也就是,根据可动态建模对象的数据特征不同,所构建的内存驻留动态模型数据结构也就不同。Further, the JavaScript object notation is used to construct a model for the dynamically modelable object, and a memory-resident dynamic model corresponding to the business scenario is obtained, including: determining the data characteristics of the dynamically modelable object; Assuming that a number of power grid objects have the same data feature, a model is constructed for a preset number of power grid objects according to the first modeling method; other power grid objects in the dynamically modelable power grid objects are constructed according to the second modeling method. A memory-resident dynamic model corresponding to the business scenario is obtained, and other power grid objects are power grid objects other than a preset number of power grid objects among the power grid objects that can be dynamically modeled. That is, according to the different data characteristics of the dynamically modelable objects, the constructed memory-resident dynamic model data structures are also different.

在本申请实施例中,第一建模方式是针对具有大量重复数据的电网对象的建模方法,模型构建方法可以是按照数据特征为字段,字段值为具有该数据特征的电网对象。第二建模方式是针对不具有大量重复数据的电网对象的建模方法,模型构建方法可以是按照电网对象为字段,字段值为电网对象的数据特征。可选的,可以构建一个空的内存驻留动态模型,作为一个预留,以便于后续在运行过程中,动态进行管理的模型。In the embodiment of the present application, the first modeling method is a modeling method for grid objects with a large amount of repeated data, and the model building method may be based on data characteristics as fields, and field values are grid objects with the data characteristics. The second modeling method is a modeling method for a power grid object without a large amount of repeated data. The model building method may be based on the power grid object as a field, and the field value is a data feature of the power grid object. Optionally, an empty memory-resident dynamic model can be constructed as a reservation to facilitate the subsequent dynamic management of the model during the running process.

进一步的,在得到业务场景对应的内存驻留动态模型之后,还包括:提取内存驻留固有模型和内存驻留动态模型中共有的关键字段(如keyField);基于关键字段建立内存驻留固有模型和内存驻留动态模型之间的映射关系;基于映射关系将内存驻留固有模型和内存驻留动态模型进行拼接,得到业务场景对应的完整模型。Further, after obtaining the memory-resident dynamic model corresponding to the business scenario, the method further includes: extracting key fields (such as keyField) shared by the memory-resident inherent model and the memory-resident dynamic model; establishing a memory-resident based on the key fields The mapping relationship between the intrinsic model and the memory-resident dynamic model; based on the mapping relationship, the memory-resident intrinsic model and the memory-resident dynamic model are spliced to obtain the complete model corresponding to the business scenario.

本实施例提供的技术方案,基于业务场景对配电网数据库中的多个电网实体进行分类,得到业务场景对应的数据集,数据集包括业务场景对应的至少一个必要电网实体;从配电网数据库中获取必要电网实体的信息记录;基于信息记录从业务场景对应的数据集中确定出可动态建模的电网对象;采用JavaScript对象表示法对可动态建模的电网对象构建模型,得到业务场景对应的内存驻留动态模型。本申请基于业务场景对配电网数据库进行分类整理,得到业务场景对应的必要电网实体和必要字段,进而得到业务场景对应的树形数据结构数据集;再通过设置动态建模条件,从数据集中挑选出占用内存过大的电网实体、使用频度低的电网实体或字段或者重复程度高的电网实体或字段,将其作为可动态建模的电网对象,最后采用JavaScript对象表示法对可动态建模的电网对象构建模型。本申请对可动态建模的电网对象进行动态建模可以节省内存,还可以提高计算程序处理效率。The technical solution provided by this embodiment classifies multiple power grid entities in the distribution network database based on business scenarios, and obtains a data set corresponding to the business scenario, where the data set includes at least one necessary power grid entity corresponding to the business scenario; Obtain the information records of the necessary power grid entities from the database; determine the power grid objects that can be dynamically modeled from the data sets corresponding to the business scenarios based on the information records; use the JavaScript object notation to build models for the power grid objects that can be dynamically modeled to obtain the corresponding business scenarios. memory-resident dynamic model. This application classifies and sorts the distribution network database based on business scenarios, obtains necessary power grid entities and necessary fields corresponding to the business scenarios, and then obtains a tree-shaped data structure dataset corresponding to the business scenarios; Select grid entities that occupy too much memory, grid entities or fields that are used infrequently, or grid entities or fields with a high degree of repetition, and use them as grid objects that can be dynamically modeled. The grid object of the modulo constructs the model. In the present application, the dynamic modeling of the power grid objects that can be dynamically modeled can save memory, and can also improve the processing efficiency of computing programs.

下面进一步描述本发明实施例提供的建模方法,图3为本申请实施例提供的一种建模方法的第二流程示意图。本申请实施例是在上述实施例的基础上进行优化,具体优化为:本实施例对可动态建模的电网对象的确定过程以及内存驻留动态模型的调整过程进行详细的解释说明。The modeling method provided by the embodiment of the present invention is further described below, and FIG. 3 is a second schematic flowchart of a modeling method provided by the embodiment of the present application. The embodiment of the present application is optimized on the basis of the above-mentioned embodiment, and the specific optimization is as follows: this embodiment provides a detailed explanation of the determination process of the power grid object that can be dynamically modeled and the adjustment process of the memory resident dynamic model.

参见图3,本实施例的方法包括但不限于如下步骤:Referring to FIG. 3, the method of this embodiment includes but is not limited to the following steps:

S210、基于业务场景对配电网数据库中的多个电网实体进行分类,得到业务场景对应的数据集。S210. Classify multiple power grid entities in the distribution network database based on the business scenario to obtain a data set corresponding to the business scenario.

本步骤的相关内容参见图1实施例的步骤S110,此处不再赘述。For the relevant content of this step, refer to step S110 in the embodiment of FIG. 1 , which will not be repeated here.

S220、从配电网数据库中获取必要电网实体的信息记录。S220. Obtain information records of necessary grid entities from the distribution grid database.

本步骤的相关内容参见图1实施例的步骤S120,此处不再赘述。For the relevant content of this step, refer to step S120 in the embodiment of FIG. 1 , and details are not repeated here.

S230、基于信息记录的条数判断必要电网实体是否具备动态建模第一条件;若具备,则获取必要电网实体中至少一个必要字段的映射表。S230. Determine whether the necessary power grid entity meets the first condition for dynamic modeling based on the number of information records; if so, obtain a mapping table of at least one necessary field in the necessary power grid entity.

其中,动态建模第一条件为电网实体的内存占用在预设标准之内。Wherein, the first condition for dynamic modeling is that the memory occupation of the power grid entity is within the preset standard.

在本申请实施例中,从配电网数据库中获取到信息记录之后,统计信息记录的条数。若信息记录的条数小于预设数值(如100条),则认为该必要电网实体不会导致内存占用过大,不具备动态建模第一条件,无需进行动态建模处理,继而判断下一个必要电网实体。若信息记录的条数大于等于预设数值(如100条),则认为该必要电网实体会导致内存占用过大,具备动态建模第一条件,需要进行动态建模处理,此时还需要判断该必要电网实体中的哪些字段需要动态建模处理,因而便要获取必要电网实体中至少一个必要字段的映射表。其中,映射表用于记录必要字段的字段值、字段值的键值数量以及字段值的重复次数。In the embodiment of the present application, after the information records are acquired from the distribution network database, the number of pieces of information records is counted. If the number of information records is less than the preset value (such as 100), it is considered that the necessary power grid entity will not cause excessive memory usage, does not meet the first condition of dynamic modeling, and does not need to perform dynamic modeling processing, and then determine the next Necessary grid entity. If the number of information records is greater than or equal to the preset value (such as 100), it is considered that the necessary power grid entity will cause excessive memory usage, and the first condition for dynamic modeling is satisfied, and dynamic modeling processing is required. At this time, it is necessary to judge Which fields in the necessary power grid entity need dynamic modeling processing, so a mapping table of at least one necessary field in the necessary power grid entity needs to be obtained. Among them, the mapping table is used to record the field values of the necessary fields, the number of key values of the field values, and the number of repetitions of the field values.

映射表的建立过程可以是:遍历电网实体的字段,建立字段值-重复次数的映射表,当字段值新出现时,在映射表中该值的重复次数加1;当字段值已经在映射表中存在,每出现一次,就在映射表中重复次数加1。The establishment process of the mapping table can be: traverse the fields of the power grid entity, and establish a mapping table of field value-repetition times. exists in, and each time it occurs, the number of repetitions in the mapping table is incremented by 1.

S240、判断键值数量是否超过信息记录条数的第一预设百分比,若未超过,则选取映射表中最大的重复次数。S240. Determine whether the number of key values exceeds the first preset percentage of the number of information records, and if not, select the maximum number of repetitions in the mapping table.

其中,动态建模第二条件为电网实体中字段的键值数量和重复次数在预设标准之内。键值数量为字段值的所取值的种类数。The second condition for dynamic modeling is that the number of key values and the number of repetitions of the fields in the power grid entity are within preset standards. The number of key values is the number of types of values of the field value.

在本申请实施例中,获取到必要电网实体中至少一个必要字段的映射表之后,统计映射表中键值数量,若键值数量大于记录条数的第一预设百分比(如33%),则认为该字段不具备动态建模第二条件,继而判断下一个必要字段。若键值数量小于等于记录条数的第一预设百分比(如33%),则选取映射表中字段值的重复次数,确定重复次数的最大值。In the embodiment of the present application, after obtaining the mapping table of at least one necessary field in the necessary grid entity, the number of key values in the mapping table is counted. If the number of key values is greater than the first preset percentage (such as 33%) of the number of records, Then it is considered that the field does not meet the second condition of dynamic modeling, and then the next necessary field is judged. If the number of key values is less than or equal to the first preset percentage (eg, 33%) of the number of records, the number of repetitions of the field value in the mapping table is selected to determine the maximum number of repetitions.

S250、判断最大的重复次数是否超过信息记录的第二预设百分比,若超过,则将最大的重复次数对应的必要字段作为可动态建模的电网对象。S250. Determine whether the maximum number of repetitions exceeds the second preset percentage of the information record, and if so, use the necessary field corresponding to the maximum number of repetitions as a dynamic modelable grid object.

在本申请实施例中,确定重复次数的最大值之后,判断最大重复次数是否超过信息记录的第二预设百分比(如60%),若未超过,则认为该字段不具备动态建模第二条件,继而判断下一个必要字段。若超过,则认为该字段具备动态建模第二条件,将该电网实体、该字段列入可动态建模的列表。In this embodiment of the present application, after determining the maximum number of repetitions, it is determined whether the maximum number of repetitions exceeds a second preset percentage (such as 60%) of the information record. If not, it is considered that the field does not have the dynamic modeling second condition, and then determine the next required field. If it exceeds, it is considered that the field has the second condition for dynamic modeling, and the grid entity and the field are included in the list that can be dynamically modeled.

S260、采用JavaScript对象表示法对可动态建模的电网对象构建模型,得到业务场景对应的内存驻留动态模型。S260. Use JavaScript object notation to construct a model for a dynamically modelable power grid object, and obtain a memory-resident dynamic model corresponding to the business scenario.

本步骤的相关内容参见图1实施例的步骤S140,此处不再赘述。For the relevant content of this step, refer to step S140 in the embodiment of FIG. 1 , which will not be repeated here.

S270、在运行内存驻留动态模型时,从配电网数据库中重新获取必要电网实体的新的信息记录;基于新的信息记录对内存驻留动态模型的内存占用进行评价得到评价结果,并基于评价结果对内存驻留动态模型进行调整。S270. When running the memory-resident dynamic model, re-acquire new information records of necessary power grid entities from the distribution network database; evaluate the memory occupation of the memory-resident dynamic model based on the new information records to obtain an evaluation result, and based on the new information records The evaluation results make adjustments to the memory-resident dynamic model.

在本申请实施例中,经上述步骤得到内存驻留动态模型之后,还需要内存驻留动态模型进行调整。具体为:在运行内存驻留动态模型时,由于电网实体的信息记录可能有所更新,所以需要从配电网数据库中重新获取必要电网实体的新的信息记录,按照S230-S250步骤中的规则对内存驻留动态模型的内存占用进行评价得到评价结果。评价结果中记录了不再满足动态建模条件的电网实体或字段。若动态模型内存占用节省效果不明显,则根据评价结果在下一次初始化工作时,对不再满足动态建模条件的电网实体或字段构建内存驻留固有模型,从而调整内存驻留动态模型。In the embodiment of the present application, after the memory resident dynamic model is obtained through the above steps, the memory resident dynamic model needs to be adjusted. Specifically: when running the memory resident dynamic model, since the information records of the grid entities may be updated, it is necessary to re-obtain new information records of the necessary grid entities from the distribution network database, according to the rules in steps S230-S250. The evaluation results are obtained by evaluating the memory footprint of the memory-resident dynamic model. Grid entities or fields that no longer satisfy the dynamic modeling conditions are recorded in the evaluation results. If the memory occupancy saving effect of the dynamic model is not obvious, according to the evaluation results, in the next initialization work, a memory-resident inherent model is constructed for the grid entities or fields that no longer meet the dynamic modeling conditions, so as to adjust the memory-resident dynamic model.

本实施例提供的技术方案,基于业务场景对配电网数据库中的多个电网实体进行分类,得到业务场景对应的数据集;从配电网数据库中获取必要电网实体的信息记录;基于信息记录的条数判断必要电网实体是否具备动态建模第一条件;若具备,则获取必要电网实体中至少一个必要字段的映射表;判断键值数量是否超过信息记录条数的第一预设百分比,若未超过,则选取映射表中最大的重复次数;判断最大的重复次数是否超过信息记录的第二预设百分比,若超过,则将最大的重复次数对应的必要字段作为可动态建模的电网对象;采用JavaScript对象表示法对可动态建模的电网对象构建模型,得到业务场景对应的内存驻留动态模型;在运行内存驻留动态模型时,从配电网数据库中重新获取必要电网实体的新的信息记录;基于新的信息记录对内存驻留动态模型的内存占用进行评价得到评价结果,并基于评价结果对内存驻留动态模型进行调整。本申请基于业务场景对配电网数据库进行分类整理,得到业务场景对应的必要电网实体和必要字段,进而得到业务场景对应的树形数据结构数据集;再通过设置动态建模条件,从数据集中挑选出占用内存过大的电网实体、使用频度低的电网实体或字段或者重复程度高的电网实体或字段,将其作为可动态建模的电网对象,最后采用JavaScript对象表示法构建模型得到内存驻留动态模,还可以对内存驻留动态模型进行调整。本申请对可动态建模的电网对象进行动态建模可以节省内存,还可以提高计算程序处理效率。In the technical solution provided by this embodiment, a plurality of grid entities in the distribution network database are classified based on business scenarios, and a data set corresponding to the business scenario is obtained; information records of necessary grid entities are obtained from the distribution network database; based on the information records Determine whether the necessary grid entity has the first condition for dynamic modeling; if yes, obtain a mapping table of at least one necessary field in the necessary grid entity; determine whether the number of key values exceeds the first preset percentage of the number of information records, If it does not exceed, select the maximum number of repetitions in the mapping table; determine whether the maximum number of repetitions exceeds the second preset percentage of the information record, if so, take the necessary field corresponding to the maximum number of repetitions as a dynamic modelable grid Object; use JavaScript object notation to build a model for dynamically modelable power grid objects, and obtain the memory-resident dynamic model corresponding to the business scenario; when running the memory-resident dynamic model, re-acquire the necessary power grid entities from the distribution network database. A new information record; the memory occupancy of the memory-resident dynamic model is evaluated based on the new information record to obtain an evaluation result, and the memory-resident dynamic model is adjusted based on the evaluation result. This application classifies and sorts the distribution network database based on business scenarios, obtains necessary power grid entities and necessary fields corresponding to the business scenarios, and then obtains a tree-shaped data structure dataset corresponding to the business scenarios; Select grid entities that occupy too much memory, grid entities or fields that are used infrequently, or grid entities or fields with a high degree of repetition, and use them as grid objects that can be dynamically modeled. The resident dynamic model can also be adjusted for the memory resident dynamic model. In the present application, the dynamic modeling of the power grid objects that can be dynamically modeled can save memory, and can also improve the processing efficiency of computing programs.

图4为本申请实施例提供的一种建模装置的结构示意图,如图4所示,该装置400可以包括:FIG. 4 is a schematic structural diagram of a modeling apparatus provided by an embodiment of the present application. As shown in FIG. 4 , the apparatus 400 may include:

数据集确定模块410,用于基于业务场景对配电网数据库中的多个电网实体进行分类,得到所述业务场景对应的数据集,所述数据集包括所述业务场景对应的至少一个必要电网实体;A data set determination module 410, configured to classify multiple power grid entities in the distribution network database based on business scenarios, and obtain a data set corresponding to the business scenario, where the data set includes at least one necessary power grid corresponding to the business scenario entity;

信息获取模块420,用于从所述配电网数据库中获取所述必要电网实体的信息记录;an information acquisition module 420, configured to acquire the information records of the necessary grid entities from the distribution grid database;

对象确定模块430,用于基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象;an object determination module 430, configured to determine a dynamically modelable power grid object from the data set corresponding to the business scenario based on the information record;

模型构建模块440,用于采用JavaScript对象表示法对所述可动态建模的电网对象构建模型,得到所述业务场景对应的内存驻留动态模型。The model building module 440 is configured to use JavaScript object notation to build a model for the dynamically modelable power grid object to obtain a memory-resident dynamic model corresponding to the business scenario.

可选的,所述必要电网实体包括至少一个必要字段。Optionally, the necessary grid entity includes at least one necessary field.

进一步的,上述数据集确定模块410,可以具体用于:基于所述业务场景按照第一必要原则从所述多个电网实体中确定出所述业务场景对应的至少一个必要电网实体;按照第二必要原则对所述必要电网实体中的每个字段进行需求评估,挑选出所述必要电网实体对应的至少一个必要字段;基于所述至少一个必要电网实体和所述至少一个必要字段得到所述业务场景对应的数据集。Further, the above data set determination module 410 may be specifically configured to: determine at least one necessary power grid entity corresponding to the business scenario from the plurality of power grid entities according to the first necessary principle based on the business scenario; According to the necessity principle, a demand assessment is performed for each field in the necessary grid entity, and at least one necessary field corresponding to the necessary grid entity is selected; the service is obtained based on the at least one necessary grid entity and the at least one necessary field. The dataset corresponding to the scene.

进一步的,上述对象确定模块430,可以具体用于:基于所述信息记录的条数判断所述必要电网实体是否具备动态建模第一条件;若具备,则获取所述必要电网实体中所述至少一个必要字段的映射表;基于所述至少一个必要字段的映射表从所述至少一个必要字段中确定出具备动态建模第二条件的必要字段,并将所述具备动态建模第二条件的必要字段作为可动态建模的电网对象。Further, the above-mentioned object determination module 430 may be specifically configured to: determine whether the necessary power grid entity has the first condition for dynamic modeling based on the number of pieces of information records; A mapping table of at least one necessary field; based on the mapping table of the at least one necessary field, a necessary field with the second condition for dynamic modeling is determined from the at least one necessary field, and the second condition with the second condition for dynamic modeling is determined. Required fields as a dynamically modelable grid object.

可选的,所述映射表用于记录所述必要字段的字段值、所述字段值的键值数量以及所述字段值的重复次数。Optionally, the mapping table is used to record the field value of the necessary field, the number of key values of the field value, and the number of repetitions of the field value.

进一步的,上述对象确定模块430,还可以具体用于:判断所述键值数量是否超过所述信息记录条数的第一预设百分比,若未超过,则选取所述映射表中最大的重复次数;判断所述最大的重复次数是否超过所述信息记录的第二预设百分比,若超过,则将所述最大的重复次数对应的所述必要字段作为可动态建模的电网对象。Further, the above-mentioned object determination module 430 can also be specifically used for: judging whether the number of key values exceeds the first preset percentage of the number of information records, and if not, selecting the largest repetition in the mapping table. number of times; determine whether the maximum number of repetitions exceeds the second preset percentage of the information record, and if so, use the necessary field corresponding to the maximum number of repetitions as a dynamically modelable grid object.

进一步的,上述模型构建模块440,可以具体用于:确定所述可动态建模对象的数据特征;若所述可动态建模的电网对象中预设数量的电网对象具有同一个数据特征,则按照第一建模方式对所述预设数量的电网对象构建模型;对所述可动态建模的电网对象中其他电网对象按照第二建模方式构建模型,从而得到所述业务场景对应的内存驻留动态模型,所述其他电网对象为所述可动态建模的电网对象中除所述预设数量的电网对象之外的电网对象。Further, the above-mentioned model building module 440 can be specifically used to: determine the data feature of the dynamically modelable object; if a preset number of power grid objects in the dynamically modelable power grid objects have the same data feature, then Build models for the preset number of power grid objects according to the first modeling method; build models for other power grid objects in the dynamically modelable power grid objects according to the second modeling method, so as to obtain the memory corresponding to the business scenario A dynamic model resides, and the other grid objects are grid objects other than the preset number of grid objects in the dynamically modelable grid objects.

进一步的,上述建模装置,还可以包括:模型调整模块;Further, the above-mentioned modeling device may further include: a model adjustment module;

所述模型调整模块,用于在运行所述内存驻留动态模型时,从所述配电网数据库中重新获取所述必要电网实体的新的信息记录;基于所述新的信息记录对所述内存驻留动态模型的内存占用进行评价得到评价结果,并基于评价结果对所述内存驻留动态模型进行调整。The model adjustment module is used for re-acquiring new information records of the necessary grid entities from the distribution grid database when running the memory resident dynamic model; based on the new information records, the The memory occupation of the memory-resident dynamic model is evaluated to obtain an evaluation result, and the memory-resident dynamic model is adjusted based on the evaluation result.

进一步的,上述对象确定模块430,还可以具体用于:在基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象之后,将所述业务场景对应的数据集作为全集;将所述业务场景对应的可动态建模对象作为子集;基于所述全集求所述子集的补集,并将所述补集作为所述业务场景对应的可静态建模的电网对象;采用预设编程语言对所述可静态建模的电网对象构建模型,得到所述业务场景对应的内存驻留固有模型。Further, the above-mentioned object determination module 430 may also be specifically configured to: after determining the power grid object that can be dynamically modeled from the data set corresponding to the business scenario based on the information record, the data set corresponding to the business scenario is determined. As a complete set; take the dynamically modelable objects corresponding to the business scenario as a subset; find the complement of the subset based on the complete set, and use the complement as the statically modelable object corresponding to the business scenario A power grid object; a preset programming language is used to construct a model for the statically modelable power grid object, and a memory-resident inherent model corresponding to the business scenario is obtained.

进一步的,上述模型构建模块440,还可以具体用于:在得到所述业务场景对应的内存驻留动态模型之后,提取所述内存驻留固有模型和所述内存驻留动态模型中共有的关键字段;基于所述关键字段建立所述内存驻留固有模型和所述内存驻留动态模型之间的映射关系;基于所述映射关系将所述内存驻留固有模型和所述内存驻留动态模型进行拼接,得到所述业务场景对应的完整模型。Further, the above-mentioned model building module 440 can also be specifically configured to: after obtaining the memory-resident dynamic model corresponding to the business scenario, extract the key shared by the memory-resident inherent model and the memory-resident dynamic model. field; establish a mapping relationship between the memory-resident intrinsic model and the memory-resident dynamic model based on the key field; based on the mapping relationship, the memory-resident intrinsic model and the memory-resident The dynamic models are spliced to obtain a complete model corresponding to the business scenario.

本实施例提供的建模装置可适用于上述任意实施例提供的建模方法,具备相应的功能和有益效果。The modeling apparatus provided in this embodiment can be applied to the modeling method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.

图5是用来实现本申请实施例的一种显示方法的电子设备的框图。电子设备10旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。FIG. 5 is a block diagram of an electronic device used to implement a display method according to an embodiment of the present application. Electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.

如图5所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a read only memory (ROM) 12, a random access memory (RAM) 13, etc., connected in communication with the at least one processor 11, wherein the memory stores There is a computer program executable by at least one processor, and the processor 11 can be executed according to a computer program stored in a read only memory (ROM) 12 or loaded from a storage unit 18 into a random access memory (RAM) 13. Various appropriate actions and processes are performed. In the RAM 13, various programs and data necessary for the operation of the electronic device 10 can also be stored. The processor 11 , the ROM 12 and the RAM 13 are connected to each other through a bus 14 . An input/output (I/O) interface 15 is also connected to the bus 14 .

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and a communication unit 19, such as a network card, modem, wireless communication transceiver, and the like. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如建模方法。The processor 11 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processors 11 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as modeling methods.

在一些实施例中,建模方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的建模方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行建模方法。In some embodiments, the modeling method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19 . When a computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the modeling method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the modeling method by any other suitable means (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本申请的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/operations specified in the flowcharts and/or block diagrams to be carried out. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本申请的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this application, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with the instruction execution system, apparatus or device. Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (eg, a CRT (cathode ray tube) or an LCD (liquid crystal display)) for displaying information to the user monitor); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS services, which are difficult to manage and weak in business scalability. defect.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application may be executed in parallel, sequentially or in different orders. As long as the desired results of the technical solutions of the present application can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (11)

1.一种建模方法,其特征在于,所述方法包括:1. a modeling method, it is characterised in that the method comprises: 基于业务场景对配电网数据库中的多个电网实体进行分类,得到所述业务场景对应的数据集,所述数据集包括所述业务场景对应的至少一个必要电网实体;Classifying multiple power grid entities in the distribution network database based on the business scenario, to obtain a data set corresponding to the business scenario, where the data set includes at least one necessary power grid entity corresponding to the business scenario; 从所述配电网数据库中获取所述必要电网实体的信息记录;obtaining information records of the necessary grid entities from the distribution grid database; 基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象;Determine a dynamically modelable power grid object from the data set corresponding to the business scenario based on the information record; 采用JavaScript对象表示法对所述可动态建模的电网对象构建模型,得到所述业务场景对应的内存驻留动态模型。The dynamic modelable grid object is modeled by using JavaScript object notation, and a memory-resident dynamic model corresponding to the business scenario is obtained. 2.根据权利要求1所述的建模方法,其特征在于,所述必要电网实体包括至少一个必要字段,所述基于业务场景对配电网数据库中的多个电网实体进行分类,得到所述业务场景对应的数据集,包括:2 . The modeling method according to claim 1 , wherein the necessary power grid entity includes at least one necessary field, and the classification of multiple power grid entities in a distribution network database based on business scenarios is performed to obtain the Data sets corresponding to business scenarios, including: 基于所述业务场景按照第一必要原则从所述多个电网实体中确定出所述业务场景对应的至少一个必要电网实体;determining at least one necessary power grid entity corresponding to the business scenario from the plurality of power grid entities based on the business scenario according to the first necessary principle; 按照第二必要原则对所述必要电网实体中的每个字段进行需求评估,挑选出所述必要电网实体对应的至少一个必要字段;Perform demand assessment on each field in the necessary grid entity according to the second necessary principle, and select at least one necessary field corresponding to the necessary grid entity; 基于所述至少一个必要电网实体和所述至少一个必要字段得到所述业务场景对应的数据集。A data set corresponding to the business scenario is obtained based on the at least one necessary grid entity and the at least one necessary field. 3.根据权利要求2所述的建模方法,其特征在于,所述基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象,包括:3 . The modeling method according to claim 2 , wherein, determining a dynamically modelable power grid object from a data set corresponding to the business scenario based on the information record, comprising: 3 . 基于所述信息记录的条数判断所述必要电网实体是否具备动态建模第一条件;若具备,则获取所述必要电网实体中所述至少一个必要字段的映射表;Determine whether the necessary grid entity meets the first condition for dynamic modeling based on the number of information records; if yes, obtain a mapping table of the at least one necessary field in the necessary grid entity; 基于所述至少一个必要字段的映射表从所述至少一个必要字段中确定出具备动态建模第二条件的必要字段,并将所述具备动态建模第二条件的必要字段作为可动态建模的电网对象。Based on the mapping table of the at least one necessary field, a necessary field meeting the second condition for dynamic modeling is determined from the at least one necessary field, and the necessary field meeting the second condition for dynamic modeling is regarded as a dynamic modelable field grid object. 4.根据权利要求3所述的建模方法,其特征在于,所述映射表用于记录所述必要字段的字段值、所述字段值的键值数量以及所述字段值的重复次数,所述基于所述至少一个必要字段的映射表从所述至少一个必要字段中确定出具备动态建模第二条件的必要字段,并将所述具备动态建模第二条件的必要字段作为可动态建模的电网对象,包括:4. The modeling method according to claim 3, wherein the mapping table is used to record the field value of the necessary field, the number of key values of the field value and the number of repetitions of the field value. The necessary fields that meet the second condition for dynamic modeling are determined from the at least one necessary field based on the mapping table of the at least one necessary field, and the necessary fields that meet the second condition for dynamic modeling are regarded as dynamically buildable. Modular grid objects, including: 判断所述键值数量是否超过所述信息记录条数的第一预设百分比,若未超过,则选取所述映射表中最大的重复次数;Judging whether the number of key values exceeds the first preset percentage of the number of information records, if not, selecting the maximum number of repetitions in the mapping table; 判断所述最大的重复次数是否超过所述信息记录的第二预设百分比,若超过,则将所述最大的重复次数对应的所述必要字段作为可动态建模的电网对象。It is judged whether the maximum number of repetitions exceeds a second preset percentage of the information record, and if it exceeds, the necessary field corresponding to the maximum number of repetitions is used as a dynamically modelable power grid object. 5.根据权利要求1所述的建模方法,其特征在于,所述采用JavaScript对象表示法对所述可动态建模的电网对象构建模型,得到所述业务场景对应的内存驻留动态模型,包括:5. The modeling method according to claim 1, characterized in that, by using JavaScript object notation to construct a model for the dynamically modelable power grid object, a memory-resident dynamic model corresponding to the business scenario is obtained, include: 确定所述可动态建模对象的数据特征;determining data characteristics of the dynamically modelable object; 若所述可动态建模的电网对象中预设数量的电网对象具有同一个数据特征,则按照第一建模方式对所述预设数量的电网对象构建模型;If a preset number of power grid objects in the dynamically modelable power grid objects have the same data feature, building a model for the preset number of power grid objects according to the first modeling method; 对所述可动态建模的电网对象中其他电网对象按照第二建模方式构建模型,从而得到所述业务场景对应的内存驻留动态模型,所述其他电网对象为所述可动态建模的电网对象中除所述预设数量的电网对象之外的电网对象。Build models for other power grid objects in the dynamically modelable power grid objects according to the second modeling method, so as to obtain a memory-resident dynamic model corresponding to the business scenario, and the other power grid objects are the dynamically modelable power grid objects. grid objects other than the preset number of grid objects among the grid objects. 6.根据权利要求1所述的建模方法,其特征在于,所述方法还包括:6. The modeling method according to claim 1, wherein the method further comprises: 在运行所述内存驻留动态模型时,从所述配电网数据库中重新获取所述必要电网实体的新的信息记录;retrieving new information records of the necessary grid entities from the distribution grid database while running the memory resident dynamic model; 基于所述新的信息记录对所述内存驻留动态模型的内存占用进行评价得到评价结果,并基于评价结果对所述内存驻留动态模型进行调整。An evaluation result is obtained by evaluating the memory occupation of the memory-resident dynamic model based on the new information record, and the memory-resident dynamic model is adjusted based on the evaluation result. 7.根据权利要求1所述的建模方法,其特征在于,在基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象之后,还包括:7 . The modeling method according to claim 1 , wherein, after determining the power grid object that can be dynamically modeled from the data set corresponding to the business scenario based on the information record, the method further comprises: 8 . 将所述业务场景对应的数据集作为全集;Taking the data set corresponding to the business scenario as a complete set; 将所述业务场景对应的可动态建模对象作为子集;Taking the dynamically modelable objects corresponding to the business scenario as a subset; 基于所述全集求所述子集的补集,并将所述补集作为所述业务场景对应的可静态建模的电网对象;Find the complement of the subset based on the complete set, and use the complement as a statically modelable power grid object corresponding to the business scenario; 采用预设编程语言对所述可静态建模的电网对象构建模型,得到所述业务场景对应的内存驻留固有模型。A preset programming language is used to construct a model for the statically modelable power grid object, and a memory-resident inherent model corresponding to the business scenario is obtained. 8.根据权利要求7所述的建模方法,其特征在于,在得到所述业务场景对应的内存驻留动态模型之后,还包括:8. The modeling method according to claim 7, wherein after obtaining the memory-resident dynamic model corresponding to the business scenario, the method further comprises: 提取所述内存驻留固有模型和所述内存驻留动态模型中共有的关键字段;extracting key fields common to the memory-resident intrinsic model and the memory-resident dynamic model; 基于所述关键字段建立所述内存驻留固有模型和所述内存驻留动态模型之间的映射关系;establishing a mapping relationship between the memory-resident intrinsic model and the memory-resident dynamic model based on the key field; 基于所述映射关系将所述内存驻留固有模型和所述内存驻留动态模型进行拼接,得到所述业务场景对应的完整模型。Based on the mapping relationship, the memory-resident inherent model and the memory-resident dynamic model are spliced to obtain a complete model corresponding to the business scenario. 9.一种建模装置,其特征在于,所述装置包括:9. A modeling device, characterized in that the device comprises: 数据集确定模块,用于基于业务场景对配电网数据库中的多个电网实体进行分类,得到所述业务场景对应的数据集,所述数据集包括所述业务场景对应的至少一个必要电网实体;A data set determination module, configured to classify multiple power grid entities in the distribution network database based on business scenarios, and obtain a data set corresponding to the business scenario, the data set including at least one necessary power grid entity corresponding to the business scenario ; 信息获取模块,用于从所述配电网数据库中获取所述必要电网实体的信息记录;an information acquisition module, configured to acquire the information records of the necessary grid entities from the distribution grid database; 对象确定模块,用于基于所述信息记录从所述业务场景对应的数据集中确定出可动态建模的电网对象;an object determination module, configured to determine a dynamically modelable power grid object from the data set corresponding to the business scenario based on the information record; 模型构建模块,用于采用JavaScript对象表示法对所述可动态建模的电网对象构建模型,得到所述业务场景对应的内存驻留动态模型。A model building module is used to build a model for the dynamically modelable power grid object by using JavaScript object notation to obtain a memory-resident dynamic model corresponding to the business scenario. 10.一种电子设备,其特征在于,所述电子设备包括:10. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至8中任一所述的建模方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any one of claims 1 to 8. the modelling method described. 11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1至8中任一所述的建模方法。11. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the construction described in any one of claims 1 to 8 when executed. model method.
CN202210589365.7A 2022-05-26 2022-05-26 Modeling method and device, electronic equipment and storage medium Pending CN114996930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210589365.7A CN114996930A (en) 2022-05-26 2022-05-26 Modeling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210589365.7A CN114996930A (en) 2022-05-26 2022-05-26 Modeling method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114996930A true CN114996930A (en) 2022-09-02

Family

ID=83029690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210589365.7A Pending CN114996930A (en) 2022-05-26 2022-05-26 Modeling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114996930A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117435558A (en) * 2023-12-20 2024-01-23 杭州硕磐智能科技有限公司 Metadata management method, computing device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825755A (en) * 2013-11-27 2014-05-28 广东电网公司电力调度控制中心 Power secondary system modeling method and system
CN111046189A (en) * 2019-11-27 2020-04-21 广东电网有限责任公司 Modeling method of power distribution network knowledge graph model
CN112713594A (en) * 2021-01-23 2021-04-27 杨银平 Micro-grid simulation control system
CN112861368A (en) * 2021-02-26 2021-05-28 国网河北省电力有限公司电力科学研究院 Power distribution network information model construction method and device and terminal equipment
CN113312748A (en) * 2021-04-21 2021-08-27 中国电力科学研究院有限公司 Online modeling method and system for load model
CN113744086A (en) * 2021-09-02 2021-12-03 广东电网有限责任公司广州供电局 Power distribution network modeling method and system
US20210406537A1 (en) * 2020-06-26 2021-12-30 X Development Llc Electrical power grid modeling
CN114050607A (en) * 2021-10-25 2022-02-15 国网冀北电力有限公司经济技术研究院 Construction system for power distribution network reconstruction digital model

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825755A (en) * 2013-11-27 2014-05-28 广东电网公司电力调度控制中心 Power secondary system modeling method and system
CN111046189A (en) * 2019-11-27 2020-04-21 广东电网有限责任公司 Modeling method of power distribution network knowledge graph model
US20210406537A1 (en) * 2020-06-26 2021-12-30 X Development Llc Electrical power grid modeling
CN112713594A (en) * 2021-01-23 2021-04-27 杨银平 Micro-grid simulation control system
CN112861368A (en) * 2021-02-26 2021-05-28 国网河北省电力有限公司电力科学研究院 Power distribution network information model construction method and device and terminal equipment
CN113312748A (en) * 2021-04-21 2021-08-27 中国电力科学研究院有限公司 Online modeling method and system for load model
CN113744086A (en) * 2021-09-02 2021-12-03 广东电网有限责任公司广州供电局 Power distribution network modeling method and system
CN114050607A (en) * 2021-10-25 2022-02-15 国网冀北电力有限公司经济技术研究院 Construction system for power distribution network reconstruction digital model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MIKE Z: "A New Modeling Approach for Power Grid Online Analysis", IFAC PAPERSONLINE, 1 January 2020 (2020-01-01) *
杨德祥;刘东;陆鸣;沈兵兵;毛俊;陈沛;: "基于公共信息模型的特高压电网信息建模及应用", 电网技术, no. 01, 5 January 2014 (2014-01-05) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117435558A (en) * 2023-12-20 2024-01-23 杭州硕磐智能科技有限公司 Metadata management method, computing device and storage medium
CN117435558B (en) * 2023-12-20 2024-03-29 杭州硕磐智能科技有限公司 Metadata management method, computing device and storage medium

Similar Documents

Publication Publication Date Title
CN112860695B (en) Monitoring data query method, device, equipment, storage medium and program product
CN110727741A (en) A method and system for constructing knowledge graph of power system
CN114996930A (en) Modeling method and device, electronic equipment and storage medium
CN113052325B (en) Online model optimization method, device, equipment, storage medium and program product
CN117688499A (en) A multi-index anomaly detection method, device, electronic equipment and storage medium
CN117131928A (en) Topology map construction method and device for core resource asset data of surface distribution network
CN116611510A (en) Knowledge graph construction method and device, electronic equipment and storage medium
CN116193296A (en) Method, device, equipment and medium for collecting and processing containerized distributed data
CN115599687A (en) Method, device, equipment and medium for determining a software testing scenario
CN114969444A (en) Data processing method and device, electronic equipment and storage medium
CN115017732A (en) A lightning protection analysis simulation step size calculation method, device, equipment and medium
CN114490817A (en) A kind of traffic classification method, device, electronic equipment, medium and product
CN114443988B (en) Information display method, device, electronic device and storage medium
CN115729957B (en) An unknown flow feature selection method and device based on maximum information coefficient
CN117215589B (en) Cloud primary state evaluation method, device, equipment and storage medium
CN113220967B (en) Ecological health degree measuring method and device for Internet environment and electronic equipment
WO2025001575A1 (en) Resource matching model training method, resource matching method, and electronic device
CN117573491A (en) A performance bottleneck locating method, device, equipment and storage medium
CN115129538A (en) Event processing method, device, equipment and medium
CN118400273A (en) Power communication network evaluation method and device, electronic equipment and storage medium
CN118917692A (en) Method and device for determining root cause of data fluctuation, electronic equipment and storage medium
CN117422259A (en) Distributed resource prediction aggregation method, device, equipment and storage medium
CN117010554A (en) Dynamic multi-objective optimization method and device applied to e-commerce recommendation system
CN115114456A (en) Method and device for determining number of nodes of knowledge graph, electronic equipment and storage medium
CN119627873A (en) Network topology planning method, device, equipment, medium and product for distribution network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination