Edge device supporting optimization solution

By designing communication, lightweight database, data processing, and optimization solution modules in edge devices, the problem that traditional edge devices cannot handle complex optimization problems is solved, achieving efficient optimization solutions in edge devices and improving adaptability and real-time performance.

CN118945201APending Publication Date: 2024-11-12HANGZHOU JIJIAN MATERIAL CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410956800.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Traditional edge devices cannot support the solution of complex optimization problems, resulting in limited computing resources and data transmission delays, making it difficult to meet real-time requirements.

Method used

Design an edge device that supports optimization solving, including a communication module, a lightweight database module, a data processing module, an optimization solving module, and a control module. The optimization type detection module classifies the problem and solves it using modules compiled from LP, MILP, and NLP solvers.

Benefits of technology

It enables efficient solutions to complex optimization problems in edge devices, reduces physical resource requirements, improves adaptability and real-time performance, and is applicable to more complex industrial scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945201A_ABST
    Figure CN118945201A_ABST
Patent Text Reader

Abstract

The invention discloses an edge device supporting optimization solution. The edge device comprises a communication module, a lightweight database module, a data processing module, an optimization solution module and a control module. The communication module collects data from external equipment, stores obtained measurement data into the lightweight database module and receives an optimization control instruction issued by an upper-layer system at the same time, and the to-be-optimized solving module solves an optimization problem according to the optimization control instruction and cleaned data obtained through processing of the data processing module. And after a solution result forms a control instruction through the control module, the communication module issues the control instruction to the external equipment and uploads an optimization control completion condition to an upper-layer system, so that management of the external equipment by the edge equipment can be realized. The edge device supports optimization problem solving, so that the edge device has better adaptability to more and more complex industrial scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge devices, and in particular to an edge device supporting optimization solutions. Background Art

[0002] Edge devices refer to small computers installed on on-site production equipment or Internet or IoT nodes. Traditional edge devices do not support optimization solutions and only have basic functions such as data collection and data processing. Complex optimization solution calculations generally upload data to central devices through edge devices for centralized processing. However, as computing problems in various industrial scenarios become more and more complex, traditional centralized processing methods are limited by data transmission delays and limited computing resources, and it is difficult to meet real-time requirements. Therefore, it is urgent to invent an edge device that supports optimization solutions to support the solution of complex optimization problems in a distributed manner. Summary of the invention

[0003] In view of the problem that current edge devices cannot support solving complex optimization problems, the present invention designs an edge device that supports optimization solving.

[0004] The present invention is implemented by the following technical solutions:

[0005] An edge device supporting optimization solution, comprising a communication module, a lightweight database module, a data processing module, an optimization solution module and a control module;

[0006] The communication module is used to collect data from external devices and store the obtained measurement data in the lightweight database module, and at the same time receive the optimization control instructions issued by the upper system. After the optimization solution module completes the solution and the control module forms the control instructions, the communication module sends the control instructions to the external device and uploads the optimization control completion status to the upper system;

[0007] The lightweight database module is used to store the measurement data collected by the communication module and the solution results obtained by the optimization solution module; wherein the measurement data is expressed and implemented according to a two-dimensional table structure, and the lightweight database module stores it as structured data.

[0008] The data processing module is used to obtain the original data stored in the lightweight database module, and perform outlier detection and repair on the original data to obtain cleaned data;

[0009] The optimization solution module is used to obtain the cleaned data processed by the data processing module, the optimization control instructions received by the communication module, and the optimization configuration file configured by the upper system. After receiving the optimization control instructions, the optimization solution module classifies and solves the optimization problems in the optimization configuration file, sends the solution results to the control module, and stores the solution results in the lightweight database module;

[0010] The control module is used to receive the solution result of the optimization solution module, form a control instruction according to the solution result, and then transmit the control instruction to the communication module.

[0011] In the above technical solution, further, the external device refers to a device managed by an edge device, and the number of the external devices is one or more; and the upper-layer system is used to manage the edge device.

[0012] Furthermore, the optimization solution module specifically includes an optimization type detection module, an LP solver compiled module, a MILP solver compiled module and an NLP solver compiled module; the optimization type detection module is used to classify the optimization problem according to the optimization configuration file, determine it as one of a linear optimization problem, a mixed integer optimization problem and a nonlinear optimization problem, and send the corresponding optimization problem to the corresponding solver compiled module, specifically: send the linear optimization problem to the LP solver compiled module, send the mixed integer optimization problem to the MILP solver compiled module, and send the nonlinear optimization problem to the NLP solver compiled module; the solution results obtained after solving by the corresponding solver compiled modules are respectively stored in the lightweight database module and sent to the control module.

[0013] Furthermore, the LP solver compiled module, the MILP solver compiled module, and the NLP solver compiled module are respectively obtained by compiling the LP solver source file, the MILP solver source file, and the NLP solver source file according to the hardware architecture and operating system of the edge device.

[0014] The beneficial effects of an edge device supporting optimization solution of the present invention are:

[0015] Compared with traditional edge devices, the lightweight database module in the edge device designed by the present invention realizes the structured storage of the data required for edge optimization with smaller physical resources, which is easy for subsequent analysis and calculation. In the optimization solution module, the optimization problem is defined by using a configuration file, and compiled and executed in a universal way to solve the optimization problem. It has good scalability, and the cost of deploying optimization problems in edge devices is greatly reduced, which can make the edge device more adaptable to more and more complex industrial scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of the structure of an edge device supporting optimization solution according to the present invention;

[0017] Figure 2 This is a schematic diagram of the structure of the optimization solution module. DETAILED DESCRIPTION

[0018] The present invention is further described in detail below with reference to specific embodiments.

[0019] like Figure 1 As shown, an edge device supporting optimization solution of the present invention includes a communication module, a lightweight database module, a data processing module, an optimization solution module, a control module and other components.

[0020] The communication module is used to collect data from external devices, and the obtained measurement data is stored in the lightweight database module. At the same time, it receives the optimization control instructions issued by the upper system. After the optimization solution module completes the solution and the control module forms the control instructions, the communication module sends the control instructions to the external device and uploads the optimization control completion status to the upper system. The external device refers to the device managed by the edge device, which may be one or more; the upper system is used to manage the edge device.

[0021] The lightweight database module is used to store the measurement data collected by the communication module and the solution results obtained by the optimization solution module.

[0022] The data processing module is used to obtain the original data stored in the lightweight database module, and perform outlier detection and repair to obtain cleaned structured data.

[0023] The optimization solution module is used to obtain the cleaned data processed by the data processing module, the optimization control instructions received by the communication module, and the optimization configuration file directly configured by the upper system. Figure 2 As shown, for the received optimization configuration file, the optimization solution module first classifies the optimization problem through the optimization type detection module, determines it as one of linear optimization, mixed integer optimization and nonlinear optimization, and sends it to the corresponding solver compiled module, that is, the linear optimization problem is sent to the LP solver compiled module, the mixed integer optimization is sent to the MILP solver compiled module, and the nonlinear optimization is sent to the NLP solver compiled module. The LP solver compiled module, the MILP solver compiled module, and the NLP solver compiled module are respectively obtained by compiling the LP solver source file, the MILP solver source file, and the NLP solver source file according to the hardware architecture and operating system of the edge device. The solution results obtained after solving the solver compiled module will be stored in the lightweight database module and sent to the control module.

[0024] The control module is used to receive the solution results of the optimization solution module, form control instructions according to the solution results, and then transmit the control instructions to the communication module.

[0025] Example

[0026] The edge device designed by the present invention can be used to perform economic optimization control on the microgrid. Assuming that a microgrid includes energy storage, micro gas turbines, power loads and other equipment, the external devices controlled by the edge device include energy storage, micro gas turbines, power loads and the like. The communication module collects the SoC (battery state of charge), power load power and power size of the energy storage, and stores these measured data in the lightweight database SQLite module of the edge device. The data processing module extracts the original data of the lightweight database module for outlier detection and repair, and transmits the cleaned data to the optimization solution module. The upper system is the EMS (Energy Management System) of the microgrid, which issues optimization control instructions to the communication module. The instruction content is to optimize the economic objectives and SoC balance objectives of the microgrid, and form an optimization configuration file with specific optimization objectives, constraints, etc., and transmit it to the optimization solution module.

[0027] The optimization solution module has three solver compiled modules. In this example, assuming that the hardware architecture of the edge device is x86 and the operating system is Linux, the LP solver scip, MILP solver cbc, and NLP solver ipopt are selected, and the source files of these solvers are adaptively compiled for the x86 architecture and Linux system. After compilation, the LP solver compiled module, MILP solver compiled module, and NLP solver compiled module are obtained respectively. After receiving the cleaned data transmitted by the data processing module and the optimization configuration file transmitted by the upper system, the optimization solution module detects the type of optimization problem and determines it to be a mixed integer programming, so it enters the MILP solver compiled module for solving.

[0028] After the optimization solution module is solved, the solution result is stored in the lightweight database module and transmitted to the control module at the same time. Based on the solution result, the control module forms control instructions for energy storage charging and discharging and micro gas turbine output adjustment, and transmits the control instructions to the communication module, which further issues the control instructions to external devices such as energy storage and micro gas turbine for execution. The communication module will also upload the completion of the optimization control to the upper system, namely the microgrid EMS.

[0029] At this point, the edge device designed by the present invention has achieved the economic optimization control goal of the microgrid.

Claims

1. An edge device supporting optimization solution, characterized in that: It includes communication module, lightweight database module, data processing module, optimization solution module and control module; The communication module is used to collect data from external devices and store the obtained measurement data in the lightweight database module, and at the same time receive the optimization control instructions issued by the upper system. After the optimization solution module completes the solution and the control module forms the control instructions, the communication module sends the control instructions to the external device and uploads the optimization control completion status to the upper system; The lightweight database module is used to store the measurement data collected by the communication module and the solution results obtained by the optimization solution module; The data processing module is used to obtain the original data stored in the lightweight database module, and perform outlier detection and repair on the original data to obtain cleaned data; The optimization solution module is used to obtain the cleaned data processed by the data processing module, the optimization control instructions received by the communication module, and the optimization configuration file configured by the upper system. After receiving the optimization control instructions, the optimization solution module classifies and solves the optimization problems in the optimization configuration file, sends the solution results to the control module, and stores the solution results in the lightweight database module; The control module is used to receive the solution result of the optimization solution module, form a control instruction according to the solution result, and then transmit the control instruction to the communication module.

2. The edge device supporting optimization solution according to claim 1, characterized in that: The external device refers to a device managed by an edge device, and the number of the external device is one or more; the upper-layer system is used to manage the edge device.

3. The edge device supporting optimization solution according to claim 1, characterized in that: The optimization solution module specifically includes an optimization type detection module, an LP solver compiled module, a MILP solver compiled module and an NLP solver compiled module; the optimization type detection module is used to classify the optimization problem according to the optimization configuration file, determine it as one of a linear optimization problem, a mixed integer optimization problem and a nonlinear optimization problem, and send the corresponding optimization problem to the corresponding solver compiled module, specifically: send the linear optimization problem to the LP solver compiled module, send the mixed integer optimization problem to the MILP solver compiled module, and send the nonlinear optimization problem to the NLP solver compiled module; the solution results obtained after solving by the corresponding solver compiled module are respectively stored in the lightweight database module and sent to the control module.

4. The edge device supporting optimization solution according to claim 3, characterized in that: The LP solver compiled module, MILP solver compiled module, and NLP solver compiled module are respectively obtained by compiling the LP solver source file, MILP solver source file, and NLP solver source file according to the hardware architecture and operating system of the edge device.