Electric power package space set construction method and system based on extensible parallel stack and NVM
By adopting a power package space collection construction method based on scalable parallel stack and NVM in the power market, the problem of low efficiency in design and management of existing power packages is solved, efficient element extraction and data storage is realized, personalized power supply solutions are provided, and market response capabilities and service efficiency are improved.
Patent Information
- Application Number
- CN202411893997.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-15
AI Technical Summary
The existing power package design and management are inefficient, difficult to quickly adapt to complex user needs and market changes, and poor storage and access efficiency, lack flexibility and personalization.
The power package space collection construction method based on extensible parallel stack and NVM is adopted to improve element extraction efficiency by building a scalable parallel stack structure, use NVM to improve data storage and access efficiency, and integrate business logic to dynamically adjust the package content.
It significantly improves the efficiency of power package element extraction and data storage, supports large-scale data processing, provides personalized power supply solutions, improves response speed and service efficiency, and meets the market's demand for personalized services.
Smart Images

Figure CN119831691A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power market, and in particular to a method and system for constructing a power package space set based on an extensible parallel stack and NVM. Background Art
[0002] As the electricity market gradually develops towards diversification and marketization, the content of electricity packages has become more complex. These electricity packages are designed to provide personalized electricity consumption options for different user groups, but at the same time, they also bring many technical challenges. The existing electricity package design and management usually rely on traditional manual rules or a single calculation method, which makes the extraction, combination and management of elements of electricity packages inefficient. When faced with complex user needs and changing market environments, traditional methods are often difficult to adapt quickly and have slow processing speeds, affecting the responsiveness of package generation and customization.
[0003] With the rapid increase in the amount of electricity package data, how to efficiently store and quickly access this huge amount of data has become a major problem. Although traditional storage methods (such as hard disk storage) can store large amounts of data, their access speed drops significantly in high-concurrency scenarios, and the storage efficiency is difficult to meet the needs of large-scale electricity package information. In addition, existing electricity package construction methods usually lack sufficient flexibility and cannot dynamically adjust package content according to user needs or market changes. Most systems rely on fixed rules and manual intervention, making it difficult to provide personalized electricity package options for different user groups, limiting the personalized and intelligent development of electricity retail services.
[0004] Therefore, the construction of a power package space collection is of great significance for promoting power market reform, optimizing power services, enabling enterprises to reduce costs and increase efficiency, and promoting energy digital transformation. The power package space collection can provide personalized power supply solutions according to the actual needs of different users, meeting the diversified and personalized power consumption needs of various users, especially corporate users; by constructing a power package space collection, power companies can integrate resources more systematically, realize the standardization and process of services, thereby improving service efficiency and response speed; the power package space collection can promote the transformation of the power market from the traditional single purchase model to a diversified and market competition model, and further stimulate market vitality; for corporate users, the power package space collection can help them choose the most economical power consumption plan according to their own production characteristics, achieve cost control and efficiency improvement; the power package space collection is an important part of energy digital transformation; the construction of the power package space collection can enhance the stability and safety of power supply, and reduce the risk of accidents through scientific power guidance and safe power services. Summary of the invention
[0005] In view of the problems of low extraction efficiency, poor storage and access efficiency, lack of flexibility and personalization in package construction, etc. of existing electricity package elements, the present invention proposes a method and system for constructing a space set of electricity packages based on an extensible parallel stack and NVM. By designing an extensible parallel stack structure, the extraction speed of electricity package elements can be effectively improved, and large-scale data processing can be supported; non-volatile memory technology (NVM storage) is used to improve the storage and access efficiency of electricity package data and reduce the risk of data loss; and business logic and space sets are integrated in the process of electricity package construction to improve the effectiveness of electricity packages.
[0006] The present invention achieves the above-mentioned purpose through the following technical solutions:
[0007] On the one hand, the present invention proposes a method for constructing a power package space set based on an extensible parallel stack and NVM, the method comprising:
[0008] Construct an extensible parallel stack structure of electricity packages and extract electricity package elements, wherein the electricity package elements include basic electricity quantity elements, electricity quantity package elements, electricity price elements, preferential policy elements, value-added service elements, payment method elements, contract term elements and cancellation method elements;
[0009] Define a power package space set based on NVM storage, including a power space package data model, a power space package data encoding model, a power space package data storage model, and a power space package data access model;
[0010] The power space package data model is used to format the extracted power package elements into a storable data structure; the power space package data encoding model is used to encode the power package elements according to the data structure; the power space package data storage model is used to store the encoded power package data in the NVM; the power space package data access model is used to quickly locate the required information from the power package data stored in the NVM according to the query conditions or the type of power package to be accessed, and decode, read and return the corresponding power package data;
[0011] According to the business logic, power package elements are selected from the power package space set to construct a variety of power packages for different types of users to choose from; the business logic includes: electricity price logic for a single user, electricity price logic for different types of users, electricity package logic for a single user and electricity package logic for different types of users.
[0012] A further improvement of the present invention is that the electricity package parallel stack structure includes: a basic electricity element stack structure, an electricity package element stack structure, an electricity price element stack structure, a preferential policy element stack structure, a value-added service element stack structure, a payment method element stack structure, a contract term element stack structure and a cancellation method element stack structure.
[0013] A further improvement of the present invention is that an extensible interface is provided in the parallel stack structure of the electricity package, and the extensible interface includes: a basic electricity quantity extensible interface, an electricity quantity package extensible interface, an electricity price extensible interface, a preferential policy extensible interface, a value-added service extensible interface, a payment method extensible interface, a contract period extensible interface, and a cancellation method extensible interface.
[0014] A further improvement of the present invention is that the basic power element stack structure can be extended through the basic power interface Q kuozhan The basic power element is expanded; the power package element stack structure can be extended through the power package interface B kuozhan The electricity package element is expanded; the electricity price element stack structure is extended through the electricity price interface φ kuozhan The electricity price element is expanded; the preferential policy element stack structure is extensible through the preferential policy interface ψ kuozhan The preferential policy element is extended; the value-added service element stack structure is extended through the value-added service interface Z kuozhan The value-added service element is expanded; the payment method element stack structure can be expanded through the payment method interface a kuozhan The payment method element is extended; the contract term element stack structure is extended through the contract term interface H kuozhan The contract term element is extended; the unsubscribe method element stack structure can extend the interface T through the unsubscribe method kuozhan Expand the unsubscribe method element.
[0015] A further improvement of the present invention is that the basic electricity element stack structure includes the basic electricity of industrial users Q G , Basic electricity consumption of commercial users Q S And the basic electricity consumption of residential users Q R ;
[0016] The power package element stack structure includes industrial user power package B G 、Commercial User Power Package B S And residential user power package B R The electricity price element stack structure includes the basic electricity price φ JC 、Tiered electricity price φ JT and time-of-use electricity price φ FX ;
[0017] The preferential policy element stack structure includes the preferential policy for the elderly ψ LN 、Nighttime electricity discountψ YJ Holiday discounts JR ;
[0018] The value-added service element stack structure includes online recharge ZCZ , Power consumption data analysis Z FX and energy saving suggestions JN ;
[0019] The payment method element stack structure includes online payment a XS 、Bank withholding DK and on-site payment XC ;
[0020] The contract term element stack structure includes monthly contract H YD , Quarterly Contract JD and annual contract ND ;
[0021] The unsubscribe method element stack structure includes the unsubscribe condition T TJ , Cancellation fee T YF and Cancellation Policy ZC .
[0022] A further improvement of the present invention is that the expression of the parallel stack structure of the power package is as follows:
[0023] F Q =[Q G ,Q S ,Q R ,…,Q kuozhan ];
[0024] F B =[B G ,B S ,B R ,…,B kuozhan ];
[0025] F φ =[φ JC ,φ JT ,φ FX ,…,φ kuozhan ];
[0026] F ψ =[ψ LN ,ψ YJ ,ψ JR ,…,ψ kuozhan ];
[0027] F Z =[Z CZ ,Z FX ,Z JN ,…,Z kuozhan ];
[0028] F a =[a XS ,a DK ,aXC ,…,a kuozhan ];
[0029] F H =[H YD ,H JD ,H ND ,…,H kuozhan ];
[0030] F T =[T TJ ,T YF ,T ZC ,…,T kuozhan ];
[0031] In the formula, F Q It is an extensible basic power element stack structure. B is an extensible power packet element stack structure, F φ is an extensible electricity price element stack structure, F ψ It is an extensible preferential policy element stack structure, F Z It is an extensible value-added service element stack structure. a is an extensible payment method element stack structure, F H is an extensible contract term element stack structure, F T It is an extensible unsubscribe method element stack structure.
[0032] A further improvement of the present invention is that, in the power package space set stored in NVM, the expression of the power space package data model is:
[0033] P = f NVM,S (F Q ,F B ,F φ ,F ψ ,F Z ,F a ,F H ,F T );
[0034] Where P represents the power space package data model, f NVM,S () is the non-volatile memory power space package data function; F Q It is an extensible basic power element stack structure. B is an extensible power packet element stack structure, F φ is an extensible electricity price element stack structure, F ψ It is an extensible preferential policy element stack structure, F Z It is an extensible value-added service element stack structure. a is an extensible payment method element stack structure, F His an extensible contract term element stack structure, F T It is an extensible unsubscribe method element stack structure;
[0035] The expression of the power space package data coding model is:
[0036] Enc(P i ) = f bianli (F Q,i ,F B,i ,F φ,i ,F ψ,i ,F Z,i ,F a,i ,F H,i ,F T,i );
[0037] In the formula, Enc(P i ) represents the power space package data encoding model, P i is the i-th electricity package data; f bianli () is the non-volatile memory power space package encoding function; F Q,i is the i-th basic charge element, F B,i is the i-th power package element, F φ,i is the i-th electricity price element, F ψ,i is the i-th preferential policy element, F Z,i is the i-th value-added service element, F a,i is the i-th payment method element, F H,i is the i-th contract term element, F T,i is the i-th unsubscribe method element;
[0038] The expression of the power space package data storage model is:
[0039] Store(NVM,Enc(P i ))=f NVM (Enc(P i ));
[0040] In the formula, Store(NVM,Enc(P i )) is the power space package data storage model, Store represents the storage operation of power package data, and NVM represents non-volatile memory; f NVM () is a non-volatile memory power space package data storage function, which is used to store the encoded power package data into NVM;
[0041] The expression of the power space package data access model is:
[0042] Query(NVM,k)=P i ,Enc(Pi ) = k;
[0043] In the formula, Query(NVM,k) is the access model of power space package data, k is the access query condition or the power package identifier to be located, and the power package data P is queried in NVM according to k. i .
[0044] A further improvement of the present invention is that the electricity price logic of a single user is that the same user can only use one electricity price. If any electricity price element is selected, the value is 1, otherwise the value is 0, and the sum of the values of all electricity price elements must be equal to 1, which is expressed as:
[0045] ∑F φS [j,:]=1;
[0046] In the formula, ∑F φS [j,:] is the row vector of the electricity price element selection matrix of the jth user, indicating the electricity price element selected by the user;
[0047] The electricity price logic of different types of users is that the electricity prices adopted by type m users and type n users are different, which can be expressed as:
[0048] F φS [m]≠F φS [n], m≠n;
[0049] In the formula, F φS [m], F φS [n] are the electricity price selection matrices for the mth and nth category users respectively;
[0050] The power package logic of a single user is that the basic power and power package of the same user can be superimposed to form the power actually used by the user, which is expressed as:
[0051] F Q (j)←F Q (j)+F B (j);
[0052] In the formula, F Q (k) is the basic electricity consumption of the jth user, F B (j) is the power package of the jth user;
[0053] The power package logic of different types of users is that the power packages adopted by type m users and type n users are different according to their respective needs, which can be expressed as:
[0054] F B (m)≠F B (n),m≠n;
[0055] In the formula, FB (m), F B (n) are the electricity packages of the m-th user and the n-th user respectively.
[0056] On the other hand, the present invention proposes a system for constructing a power package space set based on an extensible parallel stack and NVM, based on the above-mentioned method for constructing a power package space set based on an extensible parallel stack and NVM, the system comprising:
[0057] An extensible electricity package parallel stack structure module is used to build an extensible electricity package parallel stack structure and extract electricity package elements;
[0058] The power package space set definition module is used to define the power package space set based on NVM storage, including:
[0059] A formatting unit, used for formatting the extracted power package elements into a storable data structure through a power space package data model;
[0060] An encoding unit, used for encoding the power package elements by using a power space package data encoding model;
[0061] A storage unit, used for storing the encoded power package data into the NVM through the power space package data storage model;
[0062] An access unit, used to quickly locate required information from the power package data stored in the NVM according to the query conditions or the type of power package to be accessed through the power space package data access model, decode, read and return the corresponding power package data;
[0063] The power package construction module is used to select power package elements from the power package space set according to business logic, and construct a variety of power packages for different types of users to choose from.
[0064] Compared with the prior art, the beneficial effects of the present invention are as follows: by constructing an extensible parallel stack structure of electricity packages, multiple electricity package elements can be processed in parallel at the same time, which significantly improves the efficiency of element extraction. Especially when processing large-scale data, the system can extract the required electricity package elements more quickly, significantly reducing the processing time; through the extensible interface design, it can easily cope with the changes and expansions of electricity package elements. Whether it is adding new electricity price types, preferential policies, or other package elements, the system can quickly adapt to new needs to ensure flexibility and scalability in long-term operation; the use of non-volatile memory storage technology makes the storage of electricity package data more efficient, and the access speed is greatly improved, solving The invention solves the performance bottleneck of traditional storage methods in large data volumes and high concurrency scenarios; by integrating business logic with power package space collection, the invention can dynamically select and combine power package elements according to the needs of different users, whether it is the electricity price selection of a single user, the electricity package logic of different types of users, or other business rules, it can achieve flexible customization, support diversified power package construction, and meet the market demand for personalized services; through the automated power package construction mechanism, combined with a variety of electricity prices and electricity package logic, the system can intelligently generate personalized power packages quickly according to user characteristics and business needs, reduce manual intervention, improve the intelligence level of the system, and enhance the adaptability to complex business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0066] in:
[0067] Figure 1 is a flow chart of the method of the present invention;
[0068] Figure 2 It is a schematic diagram of the modular structure of the system of the present invention. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0070] like Figure 1As shown in FIG. 1 , an embodiment of the present invention provides a method for constructing a power package space set based on an extensible parallel stack and NVM, comprising the following steps:
[0071] S1: Build an extensible parallel stack structure for electricity packages and extract elements of electricity packages, which will serve as basic data for subsequent operations;
[0072] The main task of step S1 is to extract various required elements from different electricity packages by building an extensible parallel stack structure. Each stack is specifically used to store a specific type of electricity package elements, such as basic electricity elements, electricity package elements, electricity price elements, preferential policy elements, value-added service elements, payment method elements, contract term elements, and cancellation method elements. Each stack structure independently extracts the corresponding electricity package elements. Compared with the traditional serial processing method, parallel processing between different stacks can significantly improve the processing efficiency of the entire system.
[0073] Each stack has an extensible interface that allows expansion according to different needs, ensuring the adaptability and scalability of the system. Extensible interfaces are the key to achieving system flexibility and scalability. By providing these interfaces, it is possible to adapt to changes in different market needs and user needs. For example, as the content of electricity packages changes, new package elements can be easily added to the existing stack without redesigning the entire system. This highly flexible interface design provides effective support for the dynamic changes in the electricity retail market.
[0074] By breaking down the multiple dimensions of the electricity package into independent modules, it can be combined and managed more clearly. Each module (such as power consumption, price, preferential policies, etc.) can be independently expanded and adjusted, allowing the system to quickly add or modify package elements according to specific needs without affecting the operation of other modules. This modular and hierarchical design method has higher flexibility and scalability than the traditional single electricity package construction method.
[0075] Specifically, the parallel stack structure of the electricity package includes: a basic electricity quantity element stack structure, an electricity quantity package element stack structure, an electricity price element stack structure, a preferential policy element stack structure, a value-added service element stack structure, a payment method element stack structure, a contract term element stack structure, and a cancellation method element stack structure;
[0076] The parallel stack structure of the electricity package is equipped with extensible interfaces, including: basic electricity extensible interface, electricity package extensible interface, electricity price extensible interface, preferential policy extensible interface, value-added service extensible interface, payment method extensible interface, contract period extensible interface, and cancellation method extensible interface.
[0077] The basic power element stack structure can be extended through the basic power interface Q kuozhanThe basic power element is expanded, and the power package element stack structure can be extended through the power package interface B kuozhan The electricity package elements are expanded, and the electricity price element stack structure is extended through the electricity price extensible interface φ kuozhan The electricity price element is extended, and the preferential policy element stack structure is extended through the preferential policy interface ψ kuozhan The preferential policy elements are extended, and the value-added service element stack structure is extended through the value-added service interface Z kuozhan To expand the value-added service element, the payment method element stack structure can be extended through the payment method interface a kuozhan The payment method element is extended, and the contract term element stack structure is extended through the contract term extensible interface H kuozhan The contract term element is extended, and the cancellation method element stack structure can extend the interface T through the cancellation method kuozhan Expand the unsubscribe method element.
[0078] Furthermore, the basic electricity element stack structure includes the basic electricity of industrial users Q G , Basic electricity consumption of commercial users Q S And the basic electricity consumption of residential users Q R ; The power package element stack structure includes industrial user power package B G 、Commercial User Power Package B S And residential user power package B R ; The electricity price element stack structure includes the basic electricity price φ JC 、Tiered electricity price φ JT and time-of-use electricity price φ FX ; The preferential policy element stack structure includes preferential treatment for the elderly ψ LN 、Nighttime electricity discountψ YJ Holiday discounts JR ; The value-added service element stack structure includes online recharge Z CZ , Power consumption data analysis Z FX and energy saving suggestions JN ; The payment method element stack structure includes online payment a XS 、Bank withholding DK and on-site payment XC ; The contract term element stack structure includes monthly contract H YD , Quarterly Contract JD and annual contract ND ; The unsubscribe method element stack structure includes the unsubscribe condition T TJ , Cancellation fee T YF and Cancellation Policy ZC .
[0079] In one specific embodiment, the expression of the parallel stack structure of the power package is as follows:
[0080] F Q =[Q G ,Q S ,Q R ,…,Q kuozhan ];
[0081] F B =[B G ,B S ,B R ,…,B kuozhan ];
[0082] F φ =[φ JC ,φ JT ,φ FX ,…,φ kuozhan ];
[0083] F ψ =[ψ LN ,ψ YJ ,ψ JR ,…,ψ kuozhan ];
[0084] F Z =[Z CZ ,Z FX ,Z JN ,…,Z kuozhan ];
[0085] F a =[a XS ,a DK ,a XC ,…,a kuozhan ];
[0086] F H =[H YD ,H JD ,H ND ,…,H kuozhan ];
[0087] F T =[T TJ ,T YF ,T ZC ,…,T kuozhan ];
[0088] In the formula, F Q It is an extensible basic power element stack structure. B is an extensible power packet element stack structure, F φ is an extensible electricity price element stack structure, F ψ It is an extensible preferential policy element stack structure, F Z It is an extensible value-added service element stack structure.a is an extensible payment method element stack structure, F H is an extensible contract term element stack structure, F T It is an extensible unsubscribe method element stack structure.
[0089] S2: define a power package space set based on NVM storage, including a power space package data model, a power space package data encoding model, a power space package data storage model, and a power space package data access model;
[0090] The power space package data model is used to format the extracted power package elements into a storable data structure, and the power space package data encoding model is used to encode the power package elements according to the data structure. Using compression, binary encoding or hash function and other technologies, each power package element is converted into a more efficient storage format, and the power package elements (such as electricity prices, power packages, etc.) are converted into simplified digital or character forms to compress the storage space.
[0091] The power space package data storage model is used to store the encoded power package data in NVM. Based on the characteristics of NVM, an efficient space collection storage structure is designed, which can be a balanced tree (such as B-tree, B+ tree) or a hash table to support fast search and read operations; the encoded power package data is stored in NVM according to the designed storage structure. At this time, the data is stored in the non-volatile storage area of NVM to ensure its persistence; through structured design, the random access speed of storage is improved and the storage delay is reduced.
[0092] The power space package data access model is used to quickly locate the required information from the power package data stored in the NVM according to the query conditions or the type of power package to be accessed, decode it, read and return the corresponding power package data;
[0093] When accessing specific electricity package information, first locate the required data based on the requested attributes (such as user type, electricity price, etc.), decode the stored data through a predefined encoding model (electricity space package data encoding model), and quickly extract the required electricity package elements; use storage structures (such as hash tables or balanced trees) to optimize the search process and ensure efficient data reading. The decoded electricity package data will be returned as the access result and can be used for subsequent electricity package generation or analysis.
[0094] The goal of step S2 is to store and encode the extracted electricity package elements, and use NVM (non-volatile memory) to improve data storage efficiency and access speed, which can significantly optimize the storage space and reading performance of the electricity package and provide efficient data support for the next step of electricity package construction.
[0095] The use of NVM is usually used to improve the access speed and persistence of data, but in this embodiment, NVM not only undertakes the storage task, but also combines the encoding model of electricity package data, reduces the storage space occupied, and improves the access efficiency, which can greatly enhance the performance of data storage and access, especially when facing a large amount of electricity package information, and can better support the efficient operation of electricity retail business.
[0096] In one specific embodiment, the expression of the power space package data model is:
[0097] P = f NVM,S (F Q ,F B ,F φ ,F ψ ,F Z ,F a ,F H ,F T );
[0098] Where P represents the power space package data model, f NVM,S () is the non-volatile memory power space package data function;
[0099] The expression of the power space package data encoding model is:
[0100] Enc(P i ) = f bianli (F Q,i ,F B,i ,F φ,i ,F ψ,i ,F Z,i ,F a,i ,F H,i ,F T,i );
[0101] In the formula, Enc(P i ) represents the power space package data encoding model, P i is the i-th electricity package data; f bianli () is the non-volatile memory power space package encoding function; F Q,i is the i-th basic charge element, F B,i is the i-th power package element, F φ,i is the i-th electricity price element, Fψ,i is the i-th preferential policy element, F Z,i is the i-th value-added service element, F a,i is the i-th payment method element, F H,i is the i-th contract term element, F T,i is the i-th unsubscribe method element;
[0102] The expression of the power space package data storage model is:
[0103] Store(NVM,Enc(P i ))=f NVM (Enc(P i ));
[0104] In the formula, Store(NVM,Enc(P i )) is the power space package data storage model, Store represents the storage operation of power package data, and NVM represents non-volatile memory; f NVM () is a non-volatile memory power space package data storage function, which is used to store the encoded power package data into NVM;
[0105] The expression of the power space package data access model is:
[0106] Query(NVM,k)=P i ,Enc(P i ) = k;
[0107] In the formula, Query(NVM,k) is the access model of power space package data, k is the access query condition or the power package identifier to be located, and the power package data P is queried in NVM according to k. i .
[0108] These parameters cover the various models for building, encoding, storing, and accessing power packages, and unify the operating procedures of power package elements on non-volatile memory.
[0109] S3: According to the business logic, select power package elements from the power package space set to build multiple power packages for different types of users to choose from;
[0110] The business logic includes: electricity price logic for a single user, electricity price logic for different types of users, electricity package logic for a single user, and electricity package logic for different types of users.
[0111] Traditional electricity package construction methods are often limited to static configuration of elements or simple user demand matching, lacking flexible dynamic customization capabilities. Step S3 combines the electricity package elements extracted from step S1 and the data stored in the NVM in step S2, and flexibly combines electricity packages through preset business logic to generate electricity package options that meet user needs, ensuring that the system can generate personalized electricity packages according to different user needs.
[0112] Furthermore, the electricity price logic for a single user is that the same user can only use one electricity price. If any electricity price element is selected, the value is 1, otherwise the value is 0. Therefore, the sum of the values of all electricity price elements must be equal to 1, indicating that the user only uses one electricity price, which is expressed as:
[0113] ∑F φS [j,:]=1;
[0114] In the formula, ∑F φS [j,:] is the row vector of the electricity price element selection matrix of the jth user, indicating the electricity price element selected by the user;
[0115] The electricity price logic for different types of users is that the electricity prices used by type m users and type n users are different. For example, the electricity prices for industrial users, commercial users and residential users are different, which can be expressed as:
[0116] F φS [m]≠F φS [n], m≠n;
[0117] In the formula, F φS [m], F φS [n] are the electricity price selection matrices for the mth and nth category users respectively;
[0118] The power package logic of a single user is that the basic power and power package of the same user can be superimposed to form the actual power used by the user, which is expressed as:
[0119] F Q (j)←F Q (j)+F B (j);
[0120] In the formula, F Q (k) is the basic electricity consumption of the jth user, F B (j) is the power package of the jth user;
[0121] The power package logic of different types of users is that the power packages adopted by m-type users and n-type users are different according to their respective needs, which can be expressed as follows:
[0122] F B (m)≠F B(n),m≠n;
[0123] In the formula, F B (m), F B (n) are the electricity packages of the m-th user and the n-th user respectively.
[0124] like Figure 2 As shown, another embodiment of the present invention provides a system for constructing a power package space set based on an extensible parallel stack and NVM, based on the above-mentioned method for constructing a power package space set based on an extensible parallel stack and NVM, the system includes:
[0125] An extensible electricity package parallel stack structure module is used to build an extensible electricity package parallel stack structure and extract electricity package elements;
[0126] The power package space set definition module is used to define the power package space set based on NVM storage, including:
[0127] A formatting unit, used for formatting the extracted power package elements into a storable data structure through a power space package data model;
[0128] An encoding unit, used for encoding the power package elements by using a power space package data encoding model;
[0129] A storage unit, used for storing the encoded power package data into the NVM through the power space package data storage model;
[0130] An access unit, used to quickly locate required information from the power package data stored in the NVM according to the query conditions or the type of power package to be accessed through the power space package data access model, decode, read and return the corresponding power package data;
[0131] The electricity package construction module is used to select electricity package elements from the electricity package space set according to business logic and construct a variety of electricity packages for different types of users to choose from.
[0132] In summary, the present invention can process multiple electricity package elements in parallel at the same time by constructing an extensible parallel stack structure of electricity packages, which significantly improves the efficiency of element extraction. Especially when processing large-scale data, the system can extract the required electricity package elements more quickly, significantly reducing the processing time; through the extensible interface design, it can easily cope with the changes and expansions of electricity package elements. Whether it is adding new electricity price types, preferential policies, or other package elements, the system can quickly adapt to new needs to ensure flexibility and scalability in long-term operation; the use of non-volatile memory storage technology makes the storage of electricity package data more efficient, and the access speed is greatly improved, which solves the problem of traditional storage. The performance bottleneck of the storage mode in large data volume and high concurrency scenarios; by integrating business logic and power package space collection, the present invention can dynamically select and combine power package elements according to the needs of different users, whether it is the electricity price selection of a single user, the electricity package logic of different types of users, or other business rules, it can achieve flexible customization, support diversified power package construction, and meet the market demand for personalized services; through the automated power package construction mechanism, combined with a variety of electricity prices and electricity package logic, the system can intelligently generate personalized power packages quickly according to user characteristics and business needs, reduce manual intervention, improve the intelligence level of the system, and enhance the adaptability to complex business scenarios.
[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for constructing a power package space set based on an extensible parallel stack and NVM, characterized in that: The method comprises: Construct an extensible parallel stack structure of electricity packages and extract electricity package elements, wherein the electricity package elements include basic electricity quantity elements, electricity quantity package elements, electricity price elements, preferential policy elements, value-added service elements, payment method elements, contract term elements and cancellation method elements; Define a power package space set based on NVM storage, including a power space package data model, a power space package data encoding model, a power space package data storage model, and a power space package data access model; The power space package data model is used to format the extracted power package elements into a storable data structure; the power space package data encoding model is used to encode the power package elements according to the data structure; the power space package data storage model is used to store the encoded power package data in the NVM; the power space package data access model is used to quickly locate the required information from the power package data stored in the NVM according to the query conditions or the type of power package to be accessed, and decode, read and return the corresponding power package data; According to the business logic, power package elements are selected from the power package space set to construct a variety of power packages for different types of users to choose from; the business logic includes: electricity price logic for a single user, electricity price logic for different types of users, electricity package logic for a single user and electricity package logic for different types of users.
2. A method for constructing a power package space set based on an extensible parallel stack and NVM as claimed in claim 1, characterized in that: The electricity package parallel stack structure includes: a basic electricity quantity element stack structure, an electricity quantity package element stack structure, an electricity price element stack structure, a preferential policy element stack structure, a value-added service element stack structure, a payment method element stack structure, a contract term element stack structure and a cancellation method element stack structure.
3. A method for constructing a power package space set based on an extensible parallel stack and NVM as claimed in claim 2, characterized in that: An extensible interface is provided in the parallel stack structure of the electricity package, and the extensible interface includes: a basic electricity quantity extensible interface, an electricity quantity package extensible interface, an electricity price extensible interface, a preferential policy extensible interface, a value-added service extensible interface, a payment method extensible interface, a contract period extensible interface, and a cancellation method extensible interface.
4. A method for constructing a power package space set based on an extensible parallel stack and NVM as claimed in claim 3, characterized in that: The basic power element stack structure can be extended through the basic power interface Q kuozhan The basic power element is expanded; the power package element stack structure can be extended through the power package interface B kuozhan The electricity package element is expanded; the electricity price element stack structure is extended through the electricity price interface φ kuozhan The electricity price element is expanded; the preferential policy element stack structure is extensible through the preferential policy interface ψ kuozhan The preferential policy element is extended; the value-added service element stack structure is extended through the value-added service interface Z kuozhan The value-added service element is expanded; the payment method element stack structure can be expanded through the payment method interface a kuozhan The payment method element is extended; the contract term element stack structure is extended through the contract term interface H kuozhan The contract term element is extended; the unsubscribe method element stack structure can extend the interface T through the unsubscribe method kuozhan Expand the unsubscribe method element.
5. A method for constructing a power package space set based on an extensible parallel stack and NVM as claimed in claim 4, characterized in that: The basic electricity element stack structure includes the basic electricity of industrial users Q G , Basic electricity consumption of commercial users Q S And the basic electricity consumption of residential users Q R ; The power package element stack structure includes industrial user power package B G 、Commercial User Power Package B S And residential user power package B R The electricity price element stack structure includes the basic electricity price φ JC 、Tiered electricity price φ JT and time-of-use electricity price φ FX ; The preferential policy element stack structure includes the preferential policy for the elderly ψ LN 、Nighttime electricity discountψ YJ Holiday discounts JR ; The value-added service element stack structure includes online recharge Z CZ , Power consumption data analysis Z FX and energy saving suggestions JN ; The payment method element stack structure includes online payment a XS 、Bank withholding DK and on-site payment XC ; The contract term element stack structure includes monthly contract H YD , Quarterly Contract JD and annual contract ND ; The unsubscribe method element stack structure includes the unsubscribe condition T TJ , Cancellation fee T YF and Cancellation Policy ZC .
6. A method for constructing a power package space set based on an extensible parallel stack and NVM as claimed in claim 5, characterized in that: The expression of the parallel stack structure of the power package is as follows: F Q =[Q G ,Q S ,Q R ,…,Q kuozhan ]; F B =[B G ,B S ,B R ,…,B kuozhan ]; F φ =[φ JC ,f JT ,f FX ,…,f kuozhan ]; F ψ =[ψ LN ,ψ YJ ,ψ JR ,…,ψ kuozhan ]; F Z =[From CZ ,WITH FX ,WITH JN ,…,WITH kuozhan ]; F a =[a XS ,a DK ,a XC ,…,a kuozhan ]; F H =[H YD ,H JD ,H ND ,…,H kuozhan ]; F T =[T TJ ,T YF ,T ZC ,…,T kuozhan ]; In the formula, F Q It is an extensible basic power element stack structure. B is an extensible power packet element stack structure, F φ is an extensible electricity price element stack structure, F ψ It is an extensible preferential policy element stack structure, F Z It is an extensible value-added service element stack structure. a is an extensible payment method element stack structure, F H is an extensible contract term element stack structure, F T It is an extensible unsubscribe method element stack structure.
7. A method for constructing a power package space set based on an extensible parallel stack and NVM as claimed in claim 1, characterized in that: In the power package space set based on NVM storage, the expression of the power space package data model is: P=f NVM,S (F Q ,F B ,F φ ,F ψ ,F Z ,F a ,F H ,F T ); Where P represents the power space package data model, f NVM,S () is the non-volatile memory power space package data function; F Q It is an extensible basic power element stack structure. B is an extensible power packet element stack structure, F φ is an extensible electricity price element stack structure, F ψ It is an extensible preferential policy element stack structure, F Z It is an extensible value-added service element stack structure. a is an extensible payment method element stack structure, F H is an extensible contract term element stack structure, F T It is an extensible unsubscribe method element stack structure; The expression of the power space package data coding model is: Enc(P i )=f bianli (F Q,i ,F B,i ,F φ,i ,F ψ,i ,F Z,i ,F a,i ,F H,i ,F T,i ); In the formula, Enc(P i ) represents the power space package data encoding model, P i is the i-th electricity package data; f bianli () is the non-volatile memory power space package encoding function; F Q,i is the i-th basic charge element, F B,i is the i-th power package element, F φ,i is the i-th electricity price element, F ψ,i is the i-th preferential policy element, F Z,i is the i-th value-added service element, F a,i is the i-th payment method element, F H,i is the i-th contract term element, F T,i is the i-th unsubscribe method element; The expression of the power space package data storage model is: Store(NVM,Enc(P i ))=f NVM (Enc(P i )); In the formula, Store(NVM,Enc(P i )) is the power space package data storage model, Store represents the storage operation of power package data, and NVM represents non-volatile memory; f NVM () is a non-volatile memory power space package data storage function, which is used to store the encoded power package data into NVM; The expression of the power space package data access model is: Query(NVM,k)=P i ,Enc(P i )=k; In the formula, Query(NVM,k) is the access model of power space package data, k is the access query condition or the power package identifier to be located, and the power package data P is queried in NVM according to k. i .
8. The method for constructing a power package space set based on an extensible parallel stack and NVM according to claim 1, characterized in that: The electricity price logic for a single user is that the same user can only use one electricity price. If any electricity price element is selected, the value is 1, otherwise the value is 0. The sum of the values of all electricity price elements must be equal to 1, which is expressed as: ∑F φS [j,:]=1; In the formula, ∑F φS [j,:] is the row vector of the electricity price element selection matrix of the jth user, indicating the electricity price element selected by the user; the electricity price logic of different types of users is that the electricity prices adopted by m-type users and n-type users are different, which can be expressed as: F φS [m]≠F φS [n],m≠n; In the formula, F φS [m], F φS [n] are the electricity price selection matrices for the mth and nth category users respectively; The power package logic of a single user is that the basic power and power package of the same user can be superimposed to form the power actually used by the user, which is expressed as: F Q (j)←F Q (j)+F B (j); In the formula, F Q (k) is the basic electricity consumption of the jth user, F B (j) is the power package of the jth user; The power package logic of different types of users is that the power packages adopted by type m users and type n users are different according to their respective needs, which can be expressed as: F B (m)≠F B (n),m≠n; In the formula, F B (m), F B (n) are the electricity packages of the m-th user and the n-th user respectively.
9. A construction system for a power package space set construction method based on an extensible parallel stack and NVM according to any one of claims 1 to 8, characterized in that: The system comprises: An extensible electricity package parallel stack structure module is used to build an extensible electricity package parallel stack structure and extract electricity package elements; The power package space set definition module is used to define the power package space set based on NVM storage, including: A formatting unit, used for formatting the extracted power package elements into a storable data structure through a power space package data model; An encoding unit, used for encoding the power package elements by using a power space package data encoding model; A storage unit, used for storing the encoded power package data into the NVM through the power space package data storage model; An access unit, used to quickly locate required information from the power package data stored in the NVM according to the query conditions or the type of power package to be accessed through the power space package data access model, decode, read and return the corresponding power package data; The power package construction module is used to select power package elements from the power package space set according to business logic, and construct a variety of power packages for different types of users to choose from.