An intelligent service platform for power customers and a working method thereof
By introducing query optimization algorithms and reactive power compensation devices into the intelligent service platform for power customers, the problem of power consumption monitoring and query efficiency for large enterprise users has been solved, enabling rapid data acquisition and grid quality improvement, thereby enhancing user experience and grid response speed.
Patent Information
- Application Number
- CN202410287002.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-03-13
AI Technical Summary
The existing power service platform cannot meet the needs of large enterprise users, especially industrial users, for comprehensive power consumption monitoring and regional power grid monitoring within the park. Furthermore, the query algorithm does not take into account computation time, I/O operations, and memory consumption, resulting in low query efficiency and slow response speed.
A smart service platform for power customers was designed, including a cloud server, client, sampling terminal, database, and reactive power compensation device. The query optimization algorithm is used to optimize the query statement, and the query execution plan is generated through decision tree algorithm and weight calculation. The optimal plan is selected by combining factors such as CPU computing time, I/O operation number and memory consumption to achieve rapid data acquisition and power grid monitoring.
It improves query response speed and power grid quality, allowing users to access professional and authoritative information through the client, enabling real-time monitoring and rapid regulation of the power grid, thus enhancing user experience and power quality.
Smart Images

Figure CN118260318B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power service platforms, specifically relating to an intelligent power customer service platform and related working methods. Background Technology
[0002] With the opening up and intelligent development of the energy market, electricity customers' demands for services are constantly increasing. However, traditional electricity service platforms are usually geared towards ordinary customers, offering only simple query or ordering functions. Currently, there is no intelligent service platform that comprehensively integrates electricity consumption monitoring and regional power grid monitoring within industrial parks, catering to the needs of large enterprise users, especially industrial users. Furthermore, industrial users have high electricity consumption and a large variety and number of electrical devices within their parks. They often lack sufficient reserves of relevant electricity regulations and information, making it difficult to easily obtain accurate and authoritative data. Moreover, existing data retrieval systems suffer from inefficiency and slow response times, failing to meet the needs of industrial customers.
[0003] Query optimization algorithms can perform queries on databases containing large amounts of data, reducing the time and resources required for queries. However, existing query optimization algorithms still have the following technical problems in the application of intelligent power customer services: the query algorithms do not consider factors such as computation time, I / O operations and memory consumption, resulting in low query efficiency. At the same time, they cannot obtain relevant information during the query and automatically match control strategies, affecting response speed. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides an intelligent power customer service platform and its operating method, which can solve the technical problems of low data acquisition efficiency and poor power quality of the internal power grid in existing power service platforms.
[0005] The present invention adopts the following technical solution.
[0006] This invention provides an intelligent service platform for power customers, including a cloud server, a client, a sampling terminal, a database, and a reactive power compensation device. The cloud server is connected to the client, the sampling terminal, the database, and the reactive power compensation device. The sampling terminal includes multiple sensors used to collect network parameters of the regional power grid. The client includes a query module that receives query statements and sends them to the cloud server. The cloud server uses a query optimization algorithm to obtain the query results.
[0007] The query optimization algorithm includes:
[0008] Step 1: Define the feature set F as the feature set of all query statements in the database; define the training set T as the set of all query statements and their execution times;
[0009] Step 2: Receive the query statement q, optimize the query statement, decompose the optimized query statement into multiple features fi, and use the decision tree algorithm to operate on feature fi in the training set T to obtain a predicted value mi, where fi is the i-th feature in the feature set F, mi is the predicted value corresponding to the i-th feature, and the weight wi of the i-th feature fi is:
[0010] wi = Fi / Q
[0011] Where Fi represents the number of query statements containing feature fi in feature set F, and Q represents the number of query statements q in feature set F;
[0012] Step 3: For each query q, perform a weighted sum using the predicted values of all features to obtain an estimated value e:
[0013] e = ∑wi*mi
[0014] Step 4: Determine multiple query execution plans based on the estimated value e and the query table;
[0015] Step 5: Evaluate the cost of the query execution plans, select the query execution plan with the lowest cost from multiple query execution plans, and execute the selected execution plan;
[0016] Step 6: Record information such as execution time and resource consumption, and return the execution result to the client.
[0017] Preferably, the optimized query statement includes optimized query keywords and optimized query structure.
[0018] Preferably, the optimized query keywords involve splitting and merging common keywords and hot words in the query keywords; the optimized query structure involves simplifying complex query statements.
[0019] Preferably, the cost factors affecting the query execution plan include CPU computation time, number of I / O operations, network transmission time and / or memory consumption.
[0020] Preferably, in step 5, selecting the execution plan with the lowest cost from multiple alternative execution plans specifically involves:
[0021] Step 5.1: Initialize the generated query execution plan set;
[0022] Step 5.2: Add a query execution plan to the selected set of execution plans in sequence;
[0023] Step 5.3: Calculate the execution cost of the selected execution plan, specifically,
[0024] Calculate the execution cost R of the selected execution plan.
[0025]
[0026] Where S is the output processing capacity of the cloud server, D is the maximum number of parallel retrieval threads, C is the maximum number of parallel output threads, a is the number of retrieval threads currently in use, and b is the number of output threads currently in use.
[0027] Step 5.4: If the execution cost of the selected execution plan is less than a preset threshold, then the selected execution plan is taken as the final selected query execution plan, and the selection process ends;
[0028] Step 5.5: Otherwise, determine whether the execution cost calculation for all query execution plans has been completed. If not, repeat steps 5.2 to 5.4. If yes, and all query execution plans have not been selected, select the query execution plan with the lowest execution cost R from all query execution plans as the final selected query execution plan.
[0029] Preferably, after step 5.5 above, the method further includes:
[0030] Step 5.6: Submit the final selected query execution plan to the database;
[0031] Step 5.7: The database receives the final selected query execution plan;
[0032] Step 5.8: The database executes the query operation according to the final selected query execution plan and returns the results.
[0033] Preferably, the client further includes an alarm module, a login module, and a compensation switching module. The login module verifies the user's identity, the alarm module prompts the user to view alarm information, and the compensation switching module controls the reactive power compensation device to start or stop.
[0034] Preferably, the reactive power compensation device is a static reactive power compensator based on magnetic elements.
[0035] The platform also provides a working method for an intelligent power customer service platform. Step a: The user logs in to the client for authentication. Step b: After successful authentication, the client is in a standby state, used to input query statements, querying electricity consumption and grid operating parameters based on the input time period. Step c: When the cloud server receives the grid status query command from the client, it obtains and analyzes the grid operating parameters at the current sampling point to determine the grid operating status. When the average power factor is not greater than the warning value, the cloud server sends an alarm message to the client; otherwise, it feeds back the grid operating parameters and analysis results to the client. The cloud server also presets multiple automatic inspection times. At each automatic inspection time, the cloud server automatically analyzes the obtained grid operating parameters at the current sampling point to determine the grid operating status. When the average power factor is not greater than the warning value, it sends an alarm message to the client; otherwise, it does not feed back to the client. Information; Step d: When the cloud server sends alarm information to the client, it also sends the current production cycle, the status of electrical equipment, the corresponding power grid operating parameters, and the analysis results to the database, uses a query optimization algorithm to query the corresponding control strategy, and feeds the control strategy back to the client; the control strategy includes control targets and control parameters; Step e: The user views the alarm information and control strategy through the client. Within the first preset time after the control strategy is displayed, if the cloud server receives the user's control command, it sends the control command to the reactive power compensation device; otherwise, the cloud server automatically sends the control parameters and start command in the control strategy to the reactive power compensation device; the control command includes the start command and control parameters of the reactive power compensation device; Step f: The reactive power compensation device controls the thyristor according to the reactive power control formula based on the control parameters or control parameters to adjust the regional power grid power factor.
[0036] The alarm information includes alarm prompts, power grid operating parameters, and analysis results.
[0037] The beneficial effects of the present invention are as follows: Compared with the prior art, the present invention has at least the following specific beneficial effects:
[0038] (1) The customer service platform of the present invention is connected to a professional database, and users can query professional and authoritative information related to electricity through the client. In order to solve the problem of response speed when querying a large amount of data, a query optimization algorithm is used to achieve rapid data acquisition.
[0039] (2) The query optimization algorithm generates multiple query optimization plans based on the estimated query features. The optimal query optimization plan is selected by the execution cost calculation formula, which improves the query response speed and enhances the user experience.
[0040] (3) The customer service platform provides large enterprise users, especially industrial users, with the function of monitoring internal power grid parameters and performing reactive power regulation, which can effectively improve the power quality of the internal power grid. The cloud server monitors the power grid based on manual + automatic mode, enabling users to actively query and automatically obtain power grid operating parameters and analyze the power grid operating status. Based on the power grid operating parameters and analysis results, it determines when to send alarm information to the client. It also obtains the corresponding control strategy from the database through query optimization algorithm and feeds it back to the user for reference. It sends the control command input by the user or the obtained control strategy to the reactive power compensation device. The reactive power compensation device controls the thyristor according to the reactive power regulation formula to adjust the regional power grid power factor. This improves query efficiency and, combined with manual intervention, can quickly and effectively improve the power grid quality. Attached Figure Description
[0041] Figure 1 This is a structural diagram of the intelligent power customer service platform in this invention;
[0042] Figure 2 This is a client-side structural diagram of the intelligent power customer service platform in this invention;
[0043] Figure 3 This is a flowchart of the query optimization algorithm in this invention;
[0044] Figure 4 This is a flowchart illustrating the process of selecting the execution plan with the lowest cost from multiple alternative execution plans in this invention.
[0045] Figure 5 This is the wiring diagram of the reactive power compensator based on magnetic elements in this invention. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this application are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, other embodiments obtained by those skilled in the art without creative effort are all within the protection scope of this invention.
[0047] Example 1:
[0048] like Figure 1 As shown, Figure 1This is a structural diagram of an intelligent service platform for power customers proposed in this invention. The intelligent service platform for power customers includes a cloud server, a client, a sampling terminal, a database, and a reactive power compensation device. The cloud server is connected to the client, the sampling terminal, the database, and the reactive power compensation device. The sampling terminal includes multiple sensors used to collect network parameters of the regional power grid. The client includes a query module that receives query statements and sends them to the cloud server. The cloud server uses a query optimization algorithm to obtain the query results.
[0049] Preferably, the flowchart of the query optimization algorithm is as follows: Figure 3 As shown, the query optimization algorithm specifically includes:
[0050] Define the feature set F as the feature set of all query statements in the database; define the training set T as the set of all query statements and their execution times;
[0051] Receive query statement q, optimize the query statement, decompose the optimized query statement into multiple features fi, and use the decision tree algorithm to operate on feature fi in the training set T to obtain a predicted value mi, where fi is the i-th feature in the feature set F, mi is the predicted value corresponding to the i-th feature, and the weight wi of the i-th feature fi is:
[0052] wi = Fi / Q
[0053] Where Fi represents the number of query statements containing feature fi in feature set F, and Q represents the number of query statements q in feature set F;
[0054] Preferably, optimizing query statements includes optimizing query keywords and optimizing query structure.
[0055] Preferably, optimizing query keywords includes splitting and merging common keywords and hot words in the query keywords; optimizing query structure includes simplifying complex query statements.
[0056] For each query q, the estimated value e is obtained by weighted summation of the predicted values of all features:
[0057] e = ∑wi*mi;
[0058] Multiple query execution plans are determined based on the estimated value e and a pre-defined query table;
[0059] The query table contains multiple optimal query execution plans corresponding to different estimated value ranges based on historical experience.
[0060] Based on the estimated value e obtained in step 3 and the pre-set query table, determine multiple query execution plans corresponding to the current estimated value e;
[0061] Evaluate the cost of the query execution plans, select the query execution plan with the lowest cost from multiple query execution plans, and execute the selected execution plan;
[0062] Preferably, the cost factors affecting the query execution plan include CPU computation time, number of I / O operations, network transmission time and / or memory consumption.
[0063] Preferably, the flowchart for selecting the execution plan with the lowest cost from multiple alternative execution plans is as follows: Figure 4 As shown, selecting the execution plan with the lowest cost from multiple alternative execution plans specifically includes:
[0064] Initialize the generated query execution plan set;
[0065] Add a query execution plan to the selected set of execution plans in sequence;
[0066] Calculate the execution cost of the selected execution plan. The formula for calculating the execution cost R is:
[0067]
[0068] Where S is the output processing capacity of the cloud server, D is the maximum number of parallel retrieval threads, C is the maximum number of parallel output threads, a is the number of retrieval threads currently in use, and b is the number of output threads currently in use.
[0069] If the execution cost of the selected execution plan is less than the preset threshold, the selected execution plan will be used as the final selected query execution plan, and the selection process will end; otherwise, it will be determined whether the execution cost calculation of all query execution plans has been completed.
[0070] If the execution cost calculation for all query execution plans has not been completed, the next query execution plan is added to the set of selected execution plans and the above steps are repeated. If the execution cost calculation for all query execution plans has been completed and none of the query execution plans have been selected, the query execution plan with the lowest execution cost R is selected from all the query execution plans as the final selected query execution plan.
[0071] Record information such as execution time and resource consumption, and return the execution result to the client.
[0072] Preferably, after the execution result is returned to the client, selecting the execution plan with the lowest cost from multiple alternative execution plans further includes:
[0073] Submit the final selected query execution plan to the database;
[0074] The database receives the final selected query execution plan;
[0075] The database executes the query operation based on the final selected query execution plan and returns the results.
[0076] Preferably, the client-side structure diagram of the intelligent service platform for electricity customers is as follows: Figure 2 As shown, the client also includes an alarm module, a login module, and a compensation switching module. The login module verifies the user's identity, the alarm module prompts the user to view alarm information, and the compensation switching module controls the activation or deactivation of the reactive power compensation device.
[0077] Preferably, the reactive power compensation device is a static reactive power compensator based on magnetic elements.
[0078] like Figure 5 As shown, Figure 5 The VS key switching of the static reactive power compensator based on magnetic components has two extreme states: maximum reactive power (key closed) and minimum reactive power (key open). When the key is open, the capacitor is "disconnected" from the mains power and only electromagnetic coupling occurs.
[0079] The relationship between reactive power and transferred power is a function of the thyristor control angle α, and the control formula for reactive power Q' is:
[0080]
[0081] Where P is the current active power, P0 is the initial active power, β is the conduction angle of the thyristor, α is the control angle of the thyristor, and θ is the phase angle of the first harmonic current relative to the main voltage.
[0082] The current active power P and conduction angle β are calculated based on data acquired from multiple sensors at the sampling end. When the user selects to activate the reactive power compensator, the on-time of the thyristor is controlled to compensate for the reactive power of the power grid within the park, ensuring that the power factor of the regional power grid within the park meets the standard requirements.
[0083] Example 2:
[0084] This invention also provides a method for operating a smart service platform for electricity customers. The smart service platform for electricity customers proposed in the above embodiments operates through this method.
[0085] Step a: The user logs in to the client to authenticate their identity;
[0086] Step b: After successful authentication, the client is in a standby state. The user enters a query statement to query the electricity consumption and power grid operation parameters based on the entered time period.
[0087] Step c: When the cloud server receives the power grid status query command sent by the client, it obtains and analyzes the power grid operating parameters of the current sampling end to determine the power grid operating status. When the average power factor is not greater than the warning value, the cloud server sends an alarm message to the client; otherwise, it feeds back the power grid operating parameters and analysis results to the client. The cloud server also presets multiple automatic inspection times. At each automatic inspection time, the cloud server automatically analyzes the obtained power grid operating parameters of the current sampling end to determine the power grid operating status. When the average power factor is not greater than the warning value, it sends an alarm message to the client; otherwise, it does not feed back any information to the client.
[0088] Step d: When the cloud server sends alarm information to the client, it also sends the corresponding current production cycle, power equipment status, power grid operation parameters and analysis results to the database, uses a query optimization algorithm to query the corresponding control strategy, and feeds the control strategy back to the client to provide control reference for the user; the control strategy includes control target and control parameters;
[0089] Utilizing query optimization algorithms can quickly retrieve control strategies from the database and send them to the client, reducing the time clients spend waiting to obtain control strategies after viewing alarm information and enabling timely adjustments to the power grid's operating status. Alternatively, conventional query algorithms can also be used to retrieve control strategies from the database if query time is not a concern.
[0090] Step e: The user views the alarm information and control strategy through the client. Within the first preset time after the control strategy is displayed, if the cloud server receives the user's control command, it sends the control command to the reactive power compensation device; otherwise, the cloud server automatically sends the control parameters and start command in the control strategy to the reactive power compensation device; the control command includes the start command and control parameters of the reactive power compensation device.
[0091] Step f: The reactive power compensation device controls the thyristor based on the control parameters or regulation parameters and the reactive power regulation formula to adjust the power factor of the regional power grid.
[0092] Furthermore, the alarm information includes alarm prompts, power grid operating parameters, and analysis results.
[0093] Due to varying production cycles, industrial users employ different types of production equipment, resulting in different power grid operating parameters and states. During peak production seasons, the high usage rate of inductive equipment such as asynchronous motors, coupled with the complexity of the equipment types, significantly impacts power grid quality. At this time, the control targets for power grid operating parameters are more stringent to prevent control lags that could lead to substandard power quality. Conversely, during off-seasons, when less inductive equipment is used, the impact on power grid quality is relatively smaller, and the control targets for power grid operating parameters are more lenient, allowing for targets slightly exceeding minimum requirements. For the same operating parameters and states, the database stores different control strategies under different control targets.
[0094] To reduce system overhead, power grid operation status monitoring employs an automatic + manual mode. In automatic mode, the cloud server has multiple preset automatic inspection times. During each automatic inspection, the cloud server automatically analyzes the power grid operation parameters acquired at the current sampling point to determine the power grid operation status. When the average power factor approaches the warning value, an alarm is sent to the client. In manual mode, within the intervals during which the cloud server automatically analyzes power grid operation parameters, users can actively query the power grid operation parameters as needed. The cloud server, based on the user's query command, retrieves and analyzes the current power grid operation parameters to determine the power grid operation status. When the average power factor approaches the warning value, an alarm is sent to the client.
[0095] The beneficial effects of this invention are as follows: Compared with the prior art, the customer service platform of this invention is connected to a professional database, allowing users to query authoritative professional information related to electricity consumption through the client and achieve rapid data acquisition through query optimization algorithms; the query optimization plan selects the optimal query optimization plan through the execution cost calculation formula, improving query response speed and enhancing user experience; it enables users to actively query and automatically acquire power grid operating parameters and analyze the power grid operating status at regular intervals. Based on the power grid operating parameters and analysis results, when determining when to send alarm information to the client, it also retrieves the corresponding control strategy from the database through the query optimization algorithm and feeds it back to the user for reference. The control command input by the user or the acquired control strategy is sent to the reactive power compensation device, which controls the thyristor according to the reactive power control formula to adjust the regional power grid power factor. This improves query efficiency and, combined with manual intervention, can quickly and effectively improve power grid quality.
[0096] This application may be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0097] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0098] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0099] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A smart service platform for electricity customers, characterized in that, Includes cloud servers, clients, sampling terminals, databases, and reactive power compensation devices. The cloud server is connected to the client, sampling terminal, database, and reactive power compensation device. The sampling terminal is used to collect network parameters of the regional power grid. The client includes a query module that receives query statements and sends them to the cloud server. The database is used to store preset query statements, query tables, and execution plans. The cloud server uses a query optimization algorithm and combines it with the database to obtain query results. Obtaining query results includes filtering the generated query optimization plan to find the optimal query optimization plan through execution cost calculation. The cloud server uses query optimization algorithms and combines them with a database to obtain query results, including: Define the feature set F as the feature set of all query statements in the database; define the training set T as the set of all query statements and their execution times; Receive and optimize query statement q. Decompose the optimized query statement into multiple features fi. Use the decision tree algorithm to operate on features fi in the training set T to obtain predicted values mi, where fi is the i-th feature in the feature set F, mi is the predicted value corresponding to the i-th feature fi, and the weight wi of the i-th feature fi is: wi = Fi / Q Where Fi represents the number of query statements containing feature fi in feature set F, and Q represents the number of query statements q in feature set F; For each query q, a weighted sum of the predicted values of all features is used to obtain an estimate e. e = ∑Wi*mi Based on the estimated value e and the lookup table, multiple query execution plans are determined; Evaluate the cost of the query execution plans, select the query execution plan with the lowest cost from multiple query execution plans, and execute the selected execution plan; Record execution time and resource consumption information, and return the execution result to the client; The process of selecting the query execution plan with the lowest cost from multiple query execution plans specifically includes: Initialize the generated query execution plan set; Add a query execution plan to the selected set of execution plans in sequence; The execution cost R of the selected execution plan is calculated by considering the factors affecting the cost. Where S is the output processing capacity of the cloud server, D is the maximum number of parallel retrieval threads, C is the maximum number of parallel output threads, a is the number of retrieval threads currently in use, and b is the number of output threads currently in use. A query optimization algorithm is used to query the corresponding control strategy, which includes the control target and control parameters. The reactive power compensation device controls the thyristor based on the control parameters and the reactive power control formula to adjust the power factor of the regional power grid. The relationship between reactive power and transferred power is a function of the thyristor control angle α, and the reactive power Q' control formula is: Where P is the current active power, P0 is the initial active power, β is the conduction angle of the thyristor, α is the control angle of the thyristor, and θ is the phase angle of the first harmonic current relative to the main voltage.
2. The intelligent service platform for electricity customers according to claim 1, characterized in that, The optimized query statement q includes: optimizing query keywords and optimizing query structure; Among these measures, optimizing query keywords involves splitting and merging common keywords and hot words in the query keywords; optimizing query structure involves simplifying complex query statements.
3. The intelligent service platform for electricity customers according to claim 2, characterized in that, The cost factors affecting the query execution plan include: CPU computation time, number of I / O operations, network transmission time and / or memory consumption.
4. The intelligent service platform for electricity customers according to claim 3, characterized in that, If the execution cost of the selected execution plan is less than the preset threshold, the selected execution plan will be used as the final selected query execution plan, and the selection process will end; otherwise, it will be determined whether the execution cost calculation of all query execution plans has been completed. If the execution cost calculation for all query execution plans has not been completed, the next query execution plan is added to the set of selected execution plans, and the execution cost of the selected execution plans is calculated in combination with cost influencing factors. It is then determined whether the execution cost of the selected execution plans is less than a preset threshold. If the execution cost of the selected execution plans is less than the preset threshold, the selected execution plans are taken as the final selected query execution plans, and the selection process ends. Otherwise, it is determined whether the execution cost calculation for all query execution plans has been completed. If the execution cost of all query execution plans has been calculated and none of the query execution plans have been selected, then the query execution plan with the lowest execution cost R is selected from all the query execution plans as the final selected query execution plan.
5. The intelligent service platform for electricity customers according to claim 4, characterized in that, The step of selecting the query execution plan with the lowest cost from multiple query execution plans further includes: Submit the final selected query execution plan to the database; The database receives the final selected query execution plan; The database executes the query operation based on the final selected query execution plan and returns the results.
6. The intelligent service platform for electricity customers according to claim 5, characterized in that, The client also includes an alarm module, a login module, and a compensation switching module; wherein, the login module is used to log in and verify the user's identity; the cloud server detects and determines whether an alarm is needed, and if so, sends an alarm message to the client through the alarm module; the compensation switching module controls the reactive power compensation device to start or stop.
7. The intelligent service platform for electricity customers according to claim 6, characterized in that, The reactive power compensation device is a static reactive power compensator based on magnetic components.
8. A method for operating a smart service platform for electricity customers as described in any one of claims 1-7, characterized in that, include The following steps are required: Step a: The user logs in to the platform and authenticates their identity through the client; Step b: After successful authentication, the client is in a standby state, where it can enter a query statement and query the electricity consumption and power grid operation parameters based on the entered time period; Step c: When the cloud server receives the power grid status query command sent by the client, it obtains and analyzes the power grid operating parameters of the current sampling terminal to determine the power grid operating status. When the average power factor is not greater than the warning value, the cloud server sends an alarm message to the client; otherwise, it feeds back the power grid operating parameters and analysis results to the client. The cloud server also has multiple preset automatic inspection times. At each automatic inspection time, the cloud server automatically analyzes the power grid operating parameters obtained at the current sampling end to determine the power grid operating status. When the average power factor is not greater than the warning value, it sends an alarm message to the client; otherwise, it does not send any feedback to the client. Step d: When the cloud server sends alarm information to the client, it also sends the current production cycle, the status of electrical equipment, the corresponding power grid operation parameters and analysis results to the database, uses a query optimization algorithm to query the corresponding control strategy, and feeds the control strategy back to the client; the control strategy includes control targets and control parameters; Step e: The user views the alarm information and control strategy through the client. Within the first preset time after the control strategy is displayed, if the cloud server receives the user's control command, it sends the control command to the reactive power compensation device; otherwise, the cloud server automatically sends the control parameters and start command in the control strategy to the reactive power compensation device; the control command includes the start command and control parameters of the reactive power compensation device. Step f: The reactive power compensation device controls the thyristor according to the control parameters or regulation parameters and the reactive power regulation formula to adjust the power factor of the regional power grid.
9. The working method of the intelligent service platform for electricity customers according to claim 8, characterized in that, The alarm information includes alarm prompts, power grid operating parameters, and analysis results.
10. A terminal, comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the steps of the method according to any one of claims 8-9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 8-9.
Citation Information
Patent Citations
Electric energy equipment and information operation and maintenance system based on visualization
CN113722303A
Cloud-based query workload optimization
CN114402315A
