A photovoltaic module string line arrangement determination method, device, equipment and medium

By mapping the photovoltaic module installation area as a target digital matrix, the string arrangement method is determined, which solves the problem that the existing technology cannot uniformly handle the module arrangement and stringing algorithm under irregular roofs and complex terrains, and improves the efficiency of photovoltaic module stringing arrangement.

CN115292863BActive Publication Date: 2026-06-16HEFEI SUNGROW RENEWABLE ENERGY SCI & TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HEFEI SUNGROW RENEWABLE ENERGY SCI & TECH CO LTD
Filing Date
2022-08-03
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

The component layout and wiring algorithms in existing intelligent design software are mainly designed for flat roofs and cannot be applied to irregular roofs and complex terrains. This results in the inability to uniformly handle component layout and wiring algorithms in different power plant scenarios, leading to complex and inefficient designs.

Method used

By acquiring the arrangement of photovoltaic modules in the installation area and mapping it into a target digital matrix, the string arrangement of photovoltaic modules is determined. The target digital matrix is ​​then used to represent the module arrangement in the installation area, achieving unified processing.

🎯Benefits of technology

This solves the problem that the wiring algorithm cannot uniformly handle different power station components due to irregular building shapes and complex terrain, thus improving the efficiency of the wiring layout method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292863B_ABST
    Figure CN115292863B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a photovoltaic module string line arrangement determination method, device, equipment and medium, the method comprises: obtaining a target digital matrix required by photovoltaic module string line arrangement, wherein the target digital matrix is obtained according to the arrangement of photovoltaic modules in the installation area;According to the target digital matrix, the string line arrangement mode of the photovoltaic module is determined. By using the method, different power station scenes can be uniformly processed for diversified roof types, different terrains and obstacles and other complex conditions, and the complex photovoltaic module arrangement matrix can be mapped into a simple regular digital matrix. The arrangement of the components is characterized by the form of the target digital matrix. By determining the string line arrangement mode of the target digital matrix, the string line arrangement mode of the photovoltaic module can be determined. The problem that the component string line algorithm cannot be uniformly processed after the arrangement of the components in different power station scenes is solved, the complex algorithm is avoided, and the efficiency of determining the string line arrangement mode is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photovoltaic module technology, and in particular to a method, apparatus, equipment and medium for determining the string arrangement of photovoltaic modules. Background Technology

[0002] With the explosive growth of installed capacity of distributed power stations, intelligent design software for distributed photovoltaic systems is under intensive development. iSolarRoof and CandelaRoof are two typical examples of such software. However, the component placement and wiring algorithms in existing intelligent design software are designed for flat roofs and are not suitable for other irregular roof shapes.

[0003] Considering that in real-world scenarios, component layout and wiring are often affected by various irregular roof shapes, complex terrains, and obstacles (such as solar panels and water towers), different component layout and wiring methods need to be designed for different power plant scenarios. This is not only complex to design, but also impossible to cover all power plant scenarios. Different power plant scenarios cannot form a unified treatment method for component layout and wiring, resulting in poor applicability. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and medium for determining the string arrangement of photovoltaic modules, thereby enabling the determination of the string arrangement of photovoltaic modules using a digital matrix mapped from the arrangement of photovoltaic modules, and unifying the processing of the module stringing algorithm to improve efficiency.

[0005] Firstly, this embodiment provides a method for determining the string arrangement of photovoltaic modules, including:

[0006] Obtain the target digital matrix required for the arrangement of photovoltaic module strings, wherein the target digital matrix is ​​obtained based on the arrangement of photovoltaic modules in the installation area;

[0007] Based on the target digital matrix, the string arrangement of the photovoltaic modules is determined.

[0008] Secondly, this embodiment provides a photovoltaic module string arrangement determination device, including:

[0009] The array acquisition module is used to acquire the target digital array required for the arrangement of photovoltaic module strings, wherein the target digital array is obtained based on the arrangement of photovoltaic modules in the installation area;

[0010] The wiring arrangement determination module is used to determine the wiring arrangement of the photovoltaic modules based on the target digital matrix.

[0011] Thirdly, this embodiment provides an electronic device, the electronic device comprising:

[0012] At least one processor; and

[0013] A memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the photovoltaic module string arrangement determination method as described in any embodiment of the present invention.

[0015] Fourthly, this embodiment provides a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute the photovoltaic module string arrangement determination method according to any embodiment of the present invention.

[0016] This invention provides a method, apparatus, device, and medium for determining the string arrangement of photovoltaic (PV) modules. The method includes: firstly, obtaining a target digital matrix required for the string arrangement of PV modules, wherein the target digital matrix is ​​obtained based on the arrangement of PV modules in the installation area; and then, determining the string arrangement method of the PV modules based on the target digital matrix. This technical solution can uniformly handle diverse roof types, terrains, and obstacles in different power plant scenarios, representing the module arrangement in the installation area in the form of a target digital matrix. By determining the string arrangement method of the target digital matrix, the string arrangement method of the PV modules can be determined. Compared to existing technologies that require different string processing methods for different power plant scenarios and cannot achieve uniform processing, this technical solution solves the problem of inconsistent string processing algorithms for different power plant module arrangements caused by numerous irregular roof types, different terrains, and obstacles, avoiding complex algorithms and improving the efficiency of determining the string arrangement method.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used 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 those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A plan view of the installation area for arranging photovoltaic modules in different scenarios;

[0020] Figure 2 This is a flowchart illustrating a method for determining the string arrangement of photovoltaic modules according to Embodiment 1 of the present invention.

[0021] Figure 3 Example diagrams showing some typical roof information parameters;

[0022] Figure 4 This is an example diagram of a photovoltaic module array mapped into a digital array according to Embodiment 1 of the present invention;

[0023] Figure 5 This is an example flowchart of a method for determining the string arrangement of photovoltaic modules according to Embodiment 2 of the present invention;

[0024] Figure 6 This is a schematic diagram of a photovoltaic module string arrangement determination device provided in Embodiment 3 of the present invention;

[0025] Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "original," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] In existing technologies, photovoltaic modules can be installed on rooftops or ground surfaces. However, due to the variety of irregular roof shapes, complex terrains such as mountains, and obstacles, the installation area structure for photovoltaic modules varies in different power station scenarios. Figure 1This is a plan view of the installation area for photovoltaic (PV) modules in different scenarios. The actual installation area types for PV modules include flat areas and irregularly shaped areas. If the installation area is a rooftop, it also includes main and auxiliary building types. Irregularly shaped and main / auxiliary building types can take many forms. For example... Figure 1 As shown, number (1) is the flat type, number (2)-(7) are the main and auxiliary room types, and number (8)-(20) are the irregular type.

[0029] For example, taking various roof types as an example, considering that each photovoltaic module often has multiple attributes besides X and Y coordinates, such as whether it has a main beam, whether it has purlins, and whether it is positive or negative, path search algorithms such as the string optimization algorithm often have a complexity of O(N). N N represents the number of photovoltaic modules. Obviously, the complex structure is not conducive to the expansion and implementation of the algorithm. In addition, the existing module arrangement and wiring algorithms are all for the flat type of number (1) and are not applicable to other types of areas. Due to the large number of roof types and the complexity of terrain and obstacles, different photovoltaic module arrangement and wiring methods are often required for different power station scenarios. This is not only complex to design, but also cannot exhaust all power station scenarios. The module wiring algorithm cannot be uniformly processed after the photovoltaic module arrangement of different power stations. When there is a module arrangement and wiring algorithm, it can only be applied to some scenarios, which is not conducive to the development of subsequent work.

[0030] Example 1

[0031] Figure 2 This is a flowchart illustrating a method for determining the string arrangement of photovoltaic modules according to Embodiment 1 of the present invention. This method is applicable to determining the string arrangement of photovoltaic modules in different power plant scenarios. This method can be executed by a photovoltaic module string arrangement determination device, which can be implemented in hardware and / or software and is generally integrated into electronic equipment.

[0032] like Figure 2 As shown, the method for determining the string arrangement of photovoltaic modules provided in this embodiment may specifically include the following steps:

[0033] S101. Obtain the target digital matrix required for the arrangement of photovoltaic module strings.

[0034] The target digital array is obtained based on the arrangement of photovoltaic modules in the installation area.

[0035] It is understandable that in real-world scenarios, photovoltaic (PV) module placement often faces challenges such as diverse installation area types and the presence of obstacles. These areas may be flat or irregularly shaped. If the installation area is a rooftop, it may also include main and auxiliary buildings. In this embodiment, the PV module placement is mapped into a digital matrix based on the arrangement of the PV modules within the installation area. For power station module placements on different irregularly shaped rooftops or terrains of varying complexity, processing methods such as correction of irregular areas, filling of blank areas, and obstacle replacement are applied to standardize the power station module placement. This ensures that the wiring algorithm after the module placement is completed can be applied to all complex situations without altering the algorithm structure. Mapping the complex, multi-type installation area module placement matrix into a simple, regular digital matrix simplifies the wiring logic and improves optimization efficiency.

[0036] It is understandable that the arrangement of photovoltaic modules will differ depending on the type of area and the nature of obstacles. In this embodiment, the module arrangement in the installation area, the obstacle-blocked area, and the repair / blank area is mapped to different numerical numbers, and these mapped numerical numbers are combined into a target numerical matrix. Photovoltaic modules can be installed in the installation area, but not in the obstacle-blocked area or the repair / blank area. Therefore, to distinguish between the different areas, it is necessary to map the installation area, obstacle-blocked area, and repair / blank area to different numerical numbers.

[0037] Specifically, in this embodiment, the digital matrix obtained by mapping the photovoltaic modules arranged in the installation area is referred to as the target digital matrix. The target digital matrix can be predetermined and can be obtained directly before determining the string arrangement of the photovoltaic modules. Then, the obtained target digital matrix can be used as a basis to further determine the string arrangement of the photovoltaic modules.

[0038] Since the principle of arranging photovoltaic (PV) module strings on irregularly shaped roofs is the same as that in areas with complex terrain, the following example uses an irregularly shaped roof. In real-world scenarios, PV module arrangement often faces situations with numerous roof types and obstacles. The roof types for PV module arrangement may include flat roofs, irregularly shaped roofs, and main / auxiliary building roofs. For each roof type, the module arrangement within the installation area is mapped into a target digital matrix.

[0039] S102. Determine the string arrangement of the photovoltaic modules based on the target digital array.

[0040] Considering that in practical scenarios, when arranging photovoltaic modules for wiring, it is necessary to avoid obstacles and prevent crossing them. Additionally, for installation areas with U-shaped, concave, or main / distribution room configurations, wiring must not cross empty areas without modules. Therefore, when wiring according to the target numerical matrix, it is also necessary to avoid the numerical numbers mapped from areas occupied by obstacles, as well as empty areas without modules. When optimizing module wiring based on the target numerical matrix, the numerical numbers mapped from areas occupied by obstacles and empty areas are directly skipped and disregarded.

[0041] For example, if in the obtained target number matrix, "0" represents the number obtained by mapping the area occupied by obstacles and the blank area, and non-zero positive integers represent the number obtained by mapping the installation area, then when optimizing the serial connection of photovoltaic modules, the "0" bit will be skipped and not considered.

[0042] In this embodiment, based on the predetermined number of photovoltaic module strings and the number of photovoltaic modules per string, the number of strings the target digital matrix should be divided into and the number of digits in each string are determined. Based on the target digital matrix, the number of digit strings, and the number of digits, the digits contained in each string corresponding to the target digital matrix and the direction of each digit string can be determined. The digits contained in each string and the direction of each digit string are used as the processing result of the target digital matrix, since each photovoltaic module corresponds one-to-one with a digit. Based on the processing result of the target digital matrix, the module corresponding to the digit can be determined. The module can be represented by coordinates or a number; the digit determines the coordinates or number of the module, completing the string optimization and other processing tasks.

[0043] This invention provides a method for determining the string arrangement of photovoltaic (PV) modules. The method includes: first, obtaining a target digital matrix required for the string arrangement of PV modules, wherein the target digital matrix is ​​obtained based on the arrangement of PV modules in the installation area; then, determining the string arrangement method of the PV modules based on the target digital matrix. This method can uniformly handle complex situations such as diverse roof types, different terrains, and obstacles in different power plant scenarios. It represents the PV module arrangement in the installation area in the form of a target digital matrix, mapping the complex module arrangement matrix in various installation areas into a simple, regular digital matrix. By determining the string arrangement method of the target digital matrix, the string arrangement method of the PV modules can be determined. This solves the problem that the string arrangement algorithm cannot uniformly handle the different module arrangements in different power plants due to numerous irregular roof types, complex terrains, and obstacles, avoiding complex algorithms and improving the efficiency of determining the string arrangement method.

[0044] As an optional embodiment of the present invention, this optional embodiment further limits and optimizes the steps for determining the target digital matrix. The specific steps can be described as follows:

[0045] a1) Get the region type of the installation region.

[0046] In this embodiment, the area information of the installation area where the photovoltaic modules are arranged can be obtained. The area information includes the area type. The area type can be divided into flat type, irregular type, etc. If the installation area is a roof, it also includes the main and auxiliary building type. It is clear that different area types have different structures.

[0047] b1) Based on the region type and the corresponding preset processing strategy, determine the repair blank area associated with the installation region.

[0048] The "repair blank area" can be understood as the area outside the component installation area and the area obstructed by obstacles within the maximum area determined based on the installation area. In this embodiment, considering the different structures of the installation areas for flat types, irregular types, and main and auxiliary rooms on the roof, separate mapping processing is required for different area types to achieve a unified mapping. This step is used to determine the repair blank area associated with the area type. The methods for determining the repair blank area differ for flat types and irregular types. In the flat type installation area, all areas except those occupied by obstacles are installation areas, and there is no repair blank area. The installation area for irregular types is often partially blank; repairing the irregular type installation area to a complete area determines the repair blank area. Secondly, for the main and auxiliary room type installation area unique to the roof, the main and auxiliary room roof needs to be treated as a whole to determine the repair blank area. It can be understood that the blank areas between the various installation areas of the main and auxiliary room type also belong to the repair blank area.

[0049] Specifically, after determining the region type of the installation area for the photovoltaic modules, the installation area is repaired according to the preset processing strategy corresponding to that region type, and the repair blank area associated with the installation area is determined.

[0050] c1) Based on the number of photovoltaic modules in the installation area, the area blocked by obstacles, and the area to be repaired, determine the target digital matrix corresponding to the photovoltaic modules according to the preset mapping rules.

[0051] In this embodiment, photovoltaic (PV) modules can be arranged in the installation area, while PV modules cannot be arranged in the obstruction-blocked area or the repair blank area. Therefore, the installation area, obstruction-blocked area, and repair blank area are mapped to different numerical numbers. Specifically, the number of PV modules that can be placed in the installation area, the number of PV modules corresponding to the obstruction-blocked area, and the number of PV modules corresponding to the repair blank area can be determined based on the size of the PV modules. The preset mapping rule can be specifically described as follows: each PV module that can be placed in the installation area is mapped to a non-zero numerical number, and the PV modules corresponding to the obstruction-blocked area and the repair blank area are mapped to the numerical number "0".

[0052] Specifically, based on the dimensions of the installation area, the obstruction area, and the repair blank area, combined with the size of the photovoltaic modules, the number of photovoltaic modules in each area can be determined. Following a preset mapping rule, the photovoltaic modules are arranged in a matrix and mapped into a numerical matrix, with a one-to-one correspondence between the photovoltaic modules and their numerical designations. This mapped numerical matrix is ​​then designated as the target numerical matrix corresponding to the photovoltaic modules.

[0053] To repair blank areas or various obstacles, it is necessary to calculate the size of the blank area or obstacle, compare the size of the blank area or obstacle with the size of a component, see how many components the blank area or obstacle occupies, and mark the corresponding number of "0"s in the numerical matrix.

[0054] This optional embodiment no longer performs separate processing of different region types using different algorithms. The digital processing method for region information is not only beneficial to the implementation of component or string-related algorithm logic, but this processing method is also universally applicable to all algorithms for this type of problem.

[0055] Furthermore, based on the region type and the corresponding preset processing strategy, the repair blank areas associated with the installation region are determined, including:

[0056] b11) If the area type is flat, then the installation area is determined to be an unrelated blank area to be repaired.

[0057] Specifically, if the installation area is a flat area, then there are no unrepaired areas in the installation area except for possible obstacles.

[0058] b12) If the area type is irregular, the installation area is repaired into a rectangle based on the maximum distance between the horizontal and vertical opposite sides of the installation area, and the area within the rectangle other than the installation area and the area blocked by obstacles is determined as the repair blank area associated with the installation area.

[0059] The maximum distance between opposite sides, both horizontally and vertically, is determined based on the side lengths of the installation area.

[0060] If the area type is irregular, considering the shape of the installation area, the installation area is repaired into a rectangle based on the maximum distance between opposite sides of the horizontal and vertical sides. The area within the rectangle, excluding the installation area and areas obscured by obstacles, is defined as the repair blank area associated with the installation area. For irregular types, the size of the repair blank area needs to be calculated, and then, based on the selected component model and size, the number of components required for full coverage if the repair blank area is tiled flat. Blank areas where components can be tiled flat are represented by "0".

[0061] Optionally, if the installation area is a roof, the area type also includes main and auxiliary room types; based on the area type and the corresponding preset processing strategy, the steps to determine the repair blank area associated with the installation area can be described as follows:

[0062] If the area type is a main auxiliary building type, then the roof of the main auxiliary building is treated as a whole. Based on the maximum distance between the horizontal and vertical opposite sides of the whole, the whole is repaired into a rectangle. The area within the rectangle, excluding the installation area and the area blocked by obstacles, is defined as the repair blank area associated with the installation area.

[0063] The maximum distance between opposite sides, both horizontally and vertically, is determined based on the side lengths of the installation area.

[0064] If the area type is a main auxiliary room type, considering the shape of the installation area, the roofs of the main auxiliary rooms are integrated according to their number and location. The main purpose is to treat the main auxiliary room roofs as a whole. Treating the main auxiliary room roof as a whole, and using the maximum distance between opposite sides of the whole in both the horizontal and vertical directions as a benchmark, the whole is repaired into a rectangle. The area within the rectangle, excluding the component installation area and the area obstructed by obstacles, is defined as the repair blank area associated with the installation area. The repair blank area of ​​the main auxiliary room roof includes the repair blank area between auxiliary room roofs and the repair blank area between main auxiliary room roofs.

[0065] The process for repairing blank areas is the same as that for irregularly shaped areas. Similarly, the size of the blank area is calculated, the selected component is fully tiled, and any blank areas where components can be tiled are replaced with "0".

[0066] Furthermore, based on the number of photovoltaic modules in the installation area, the obstacle-blocked area, and the repair blank area, the target digital matrix corresponding to the photovoltaic modules is determined according to a preset mapping rule, including:

[0067] c11) Determine the first number of photovoltaic modules to be arranged in the installation area based on the size of the installation area and the size of the photovoltaic modules.

[0068] In this embodiment, the area information of the installation area can be obtained. The area information may include the size information of the area; specifically, a single area mainly includes the length and width of the installation area; the location and length and width of irregularly shaped areas, and the location and size of obstacles; when multiple installation areas exist, it is necessary to obtain the location of each installation area and the distance between each installation area. Each installation area may contain all the information of a single installation area. Based on the area information parameters, the area size of the installation area can be calculated, and then, based on the selected component model and corresponding size, the first number of photovoltaic modules to be arranged in the full-size module layout can be determined.

[0069] For example, Figure 3 This is an example diagram showing some typical roof information parameters. For example... Figure 3 As shown, the letters a, b, c...n, and M represent different lengths. Based on these length parameters, the area of ​​the component installation region can be determined.

[0070] c12) Determine the second number of photovoltaic modules to be arranged in the obstructed area based on the size of the obstructed area and the size of the photovoltaic modules.

[0071] Similarly, in this step, the area size of the obstacle-obstructed region is determined based on the obtained regional information of the installation area. Regional information can include the dimensions of the installation area; specifically, for a single area, this mainly includes the length and width; for irregularly shaped installation areas, the location and dimensions of the obstacles; when multiple installation areas exist, the location of each installation area and the distance between each installation area need to be obtained. Each installation area may contain all the information of a single installation area. Based on the regional information parameters, the area size of the obstacle-obstructed region in the installation area can be calculated. Based on the obstacle's size and location, as well as the component models arranged, the number of components occupied by the obstacle is calculated and recorded as the second quantity. If the calculated number of components occupied by the obstacle is a decimal, it is rounded up to ensure proper component installation positions.

[0072] For example, continue to refer to Figure 3 The letters a, b, c...n, and M represent different lengths. Based on these length parameters, the size of the area obstructed by the obstacle can be determined.

[0073] c13) Based on the size of the repaired blank area and the size of the photovoltaic modules, determine the third number of photovoltaic modules to be arranged in the repaired blank area.

[0074] Similarly, in this step, the area size of the blank area to be repaired is determined based on the obtained regional information of the installation area. Regional information can include the dimensions of the area; specifically, for a single area, this mainly includes the length and width; for irregularly shaped installation areas, the location and dimensions of the dimensions of obstacles; when multiple installation areas exist, the location of each installation area and the distance between each installation area need to be obtained. Each installation area may contain all the information of a single installation area. Based on the size and location of the blank area to be repaired, and the model of the components arranged, the number of components occupied by the blank area to be repaired is calculated and recorded as the third quantity. If the calculated number of components occupied by the blank area to be repaired is a decimal, it is rounded up to ensure the component installation positions are correct.

[0075] For example, continue to refer to Figure 3 The letters a, b, c...n, and M represent different lengths. Based on these length parameters, the size of the area to be repaired can be determined.

[0076] c14) Based on the first quantity, the second quantity, and the third quantity, map each photovoltaic module into a different number in a set order, and construct an initial number matrix corresponding to the photovoltaic module based on the number, wherein each photovoltaic module corresponds one-to-one with each number in the initial number matrix.

[0077] In this embodiment, each module in the photovoltaic module array is mapped to a number and forms an initial number array. The specific mapping order is not limited, as long as the module and the number correspond one-to-one, it can start from any module.

[0078] Specifically, the first quantity can represent the number of numerical identifiers that should be mapped to the component installation area; the second quantity can represent the number of numerical identifiers that should be mapped to the photovoltaic module arrangement in the obstruction-blocked area; and the third quantity can represent the number of numerical identifiers that should be mapped to the repaired blank area. Based on the arrangement of each row and column of the photovoltaic modules, the photovoltaic module array is mapped to the corresponding number of numerical identifiers for each row and column. Each module corresponds to a unique numerical identifier. For example, the numerical identifiers can be arranged sequentially starting from 1 and incrementing by 1, such as 1, 2, 3, 4, etc.

[0079] c15) Set the numbers in the initial digital matrix corresponding to the photovoltaic modules in the obstructed area and the repaired blank area to zero, and determine the updated initial digital matrix as the target digital matrix.

[0080] Specifically, for areas obstructed by obstacles and areas needing to be filled in, since there are no actual photovoltaic modules in these locations, they should not be used in the actual algorithm. Therefore, the numerical values ​​in the initial numerical matrix corresponding to these areas are set to zero, and the updated initial numerical matrix is ​​used as the target numerical matrix. When a numerical value is zero, it is automatically skipped during the string optimization process, thus ensuring that all numerical values ​​used for string optimization correspond to actual photovoltaic modules.

[0081] This optional embodiment proposes a mapping method for component arrangement to a digital matrix under complex conditions such as irregular roof shapes, different terrains, or obstacles. It utilizes processing methods such as irregular area correction, filling of irregular blank areas, and obstacle replacement to complete the mapping from irregular roof or complex terrain power plant scenarios to a regular matrix. This solves the problem of inconsistent processing and poor applicability of component wiring algorithms after component arrangement in different power plants. It enables the wiring algorithm after relevant component arrangement to be applicable to all complex situations without changing the algorithm structure.

[0082] Furthermore, each photovoltaic module is mapped to a different number in a set order, including: if the photovoltaic modules are arranged vertically, the photovoltaic modules are mapped to one number; if the photovoltaic modules are arranged horizontally, the photovoltaic modules are mapped to two numbers, and the first number of the two numbers is used as the mark.

[0083] Specifically, photovoltaic (PV) modules can be arranged in vertical or horizontal rows. Generally, the number of rows in a horizontal arrangement is less than the number of rows in a vertical arrangement. When mapping PV modules to numbers, if the PV modules are arranged vertically, they are mapped to a single number. For power plants with horizontally arranged modules, the algorithm for handling vertical arrangements is not suitable because the structure of horizontal rows differs from that of vertical rows. Theoretically, the length of a horizontal row is twice the width of a vertical row; therefore, mapping one horizontal row to two numbers maintains consistent processing logic. By using a special mapping process to map one horizontal row module to two numbers, horizontal and vertical rows have the same structure, facilitating algorithm processing. This step proposes a special mapping rule for horizontally arranged modules, providing unified processing for both horizontal and vertical modules, eliminating the need for special processing within the algorithm and ensuring consistent algorithm application.

[0084] Understandably, for the component installation area, if there is a horizontal arrangement, one photovoltaic module is mapped to a number consisting of two positive integers; for areas obstructed by obstacles and areas requiring repair, the corresponding positions should be mapped to two "0"s. For a row containing a horizontal component, if one horizontal component is removed due to the presence of an obstacle, two "0"s need to be filled in the corresponding position to maintain structural consistency.

[0085] To more clearly illustrate the implementation process of mapping photovoltaic modules into a digital matrix provided in the embodiments of the present invention, Figure 4 This is an example diagram of the photovoltaic module array mapped into a digital array according to Embodiment 1 of the present invention, as shown below. Figure 4 As shown, the photovoltaic modules arranged in the installation area are numbered and mapped to their positions sequentially from left to right and from bottom to top. For irregularly shaped empty spaces in the installation area, the maximum length and width of the installation area are used to simulate the size of the photovoltaic modules occupying those spaces. Taking the first row of photovoltaic modules as an example, the positions of modules 5-8 and 12-13 in the first row are empty, mapped to "0" for the last row of the target number matrix, corresponding to modules 4-7 (corresponding to modules 5-8) and 11-12 (corresponding to modules 12-13). The fourth row of photovoltaic modules is arranged horizontally, mapped to the second row of the target number matrix. One horizontal row of photovoltaic modules corresponds to two numbered positions. For example, if the first horizontal row of modules is empty, it is mapped to two "0"s in the target number matrix. The third horizontal row of photovoltaic modules are actual photovoltaic modules, mapped to "18" and "19" in the target number matrix. It can also be seen that the numbering is arranged sequentially.

[0086] Furthermore, the method also includes: if the target number matrix includes rows of all zeros, then remove the rows of all zeros from the target number matrix.

[0087] Specifically, if the target number matrix contains rows of all zeros, that is, a row of all "0", it means that there are no actual photovoltaic modules arranged in this row, and it should not play a role in the actual algorithm. The rows of all zeros in the target number matrix need to be removed in advance.

[0088] As an optional embodiment of the present invention, after determining the target digital matrix corresponding to the photovoltaic module, this optional embodiment further includes:

[0089] If there are photovoltaic modules arranged in a horizontal row, the number of photovoltaic modules in each string and the number of photovoltaic modules arranged in a horizontal row are determined according to the predetermined number of photovoltaic modules in each string and the predetermined horizontal row division rules. The number of serial numbers in each string of photovoltaic modules corresponds one-to-one with each string of serial numbers.

[0090] In this embodiment, because the horizontal row of modules has a different structure than the vertical row, one horizontal row will be mapped to two numerical numbers during mapping. When stringing the modules, since the number of photovoltaic modules in each string is calculated based on the actual number of modules, the mapping of one horizontal row to two numerical numbers changes the one-to-one mapping relationship between photovoltaic modules and numerical numbers. Therefore, the increased number of numbers due to the horizontal row mapping needs to be distributed into adjacent strings to maintain the one-to-one correspondence.

[0091] Specifically, it is default here that the horizontally arranged photovoltaic modules are arranged in the second row. Obtain the number of modules in each string of photovoltaic modules, the number of modules in the first row, and the number of horizontally arranged photovoltaic modules. According to the size relationship among the three, determine which string the horizontally arranged photovoltaic modules are allocated to, so as to determine the number of digital numbers in each processed string.

[0092] Among them, the horizontal mapping rule can be expressed as:

[0093] Obtain the number of horizontal modules R, the number of modules num0 in the first row of the target digital matrix, and the number of modules C1, C2, C3... in each string of photovoltaic modules. Express the number of digital numbers in each string corresponding to the target digital matrix as: C1', C2', C3'...

[0094] If C1 ≥ R + num0, then C1' = C1 + R; if C1 ≤ num0 and C1 + C2 ≥ R + num0, then C2' = C2 + R; if C1 > num0 and C1 + C2 ≥ R + num0, then C1' = C1 + C1 - num0, C2' = C2 + R + num0 - C1; if C1 + C2 < R + num0 and C1 + C2 > num0, then C2' = 2C2 + C1 - num0, C3' = C3 + R + num0 - C1 - C2; if C1 + C2 + C3 < R + num0, then C3' = 2C3 + C2 + C1 - num0, C4' = C4 + R + num0 - C1 - C2 - C3.

[0095] It should be noted that the maximum installed capacity of a household power station is 50KW. In the case of the maximum possible module layout with a horizontal row (four vertical rows and one horizontal row), the maximum number of modules in a single row will not exceed 25 modules. The horizontal row is default in the second row, and the number of horizontal modules generally will not exceed 13 modules. That is, in the case of a horizontal row, the number of modules in the first two rows cannot be greater than the number of modules in the first four strings. Because one horizontal row maps two numbers, which is equivalent to adding one number for a horizontal row. For R horizontal rows, R numbers are added. In order to keep the number of modules and the number of mapped numbers consistent, the increased number of horizontal modules in the mapping is divided into the strings with horizontal rows.

[0096] This optional embodiment provides a method for determining the number of digital number strings and the number of numbered digits in each string corresponding to the target digital matrix according to the number of photovoltaic module strings and the number of modules in each string, providing a unified optimization processing specification for module layout and string wiring optimization, and is generally applicable to existing related algorithms.

[0097] Embodiment 2

[0098] Figure 5 The following is an example flowchart of a method for determining the string wiring layout of photovoltaic modules provided in Embodiment 2 of the present invention. As Figure 5 shown, this Embodiment 2 realizes the determination of the string wiring layout of photovoltaic modules by the following steps.

[0099] Specifically, taking the installation of photovoltaic modules on a rooftop as an example, an exemplary implementation of the photovoltaic module string arrangement determination method provided in this embodiment may include:

[0100] S201. Obtain the region type of the installation area.

[0101] S202. If the area type is flat, then determine that there is no associated blank area to repair in the installation area.

[0102] S203. If the area type is irregular, the installation area is repaired into a rectangle based on the maximum distance between the horizontal and vertical opposite sides of the installation area, and the area within the rectangle other than the installation area and the area blocked by obstacles is determined as the repair blank area associated with the installation area.

[0103] S204. If the area type is the main auxiliary room type, then the roof of the main auxiliary room is treated as a whole. Based on the maximum distance between the horizontal and vertical opposite sides of the whole, the whole is repaired into a rectangle. The area within the rectangle, excluding the installation area and the area blocked by obstacles, is determined as the repair blank area associated with the installation area.

[0104] S205. Determine the first number of photovoltaic modules to be arranged in the installation area based on the size of the installation area and the size of the photovoltaic modules.

[0105] S206. Determine the second number of photovoltaic modules to be arranged in the obstructed area based on the size of the obstructed area and the size of the photovoltaic modules.

[0106] S207. Based on the size of the blank area to be repaired and the size of the photovoltaic modules, determine the third number of photovoltaic modules to be arranged in the blank area to be repaired.

[0107] S208. Determine whether there are horizontally arranged photovoltaic modules. If yes, proceed to step S210; otherwise, proceed to step S209.

[0108] S209. Based on the first quantity, the second quantity, and the third quantity, map each photovoltaic module to a numerical number in a set order, and construct an initial numerical matrix corresponding to the photovoltaic module based on the numerical number.

[0109] S210. Based on the first quantity, the second quantity, and the third quantity, each photovoltaic module is mapped to a number in a vertical row and to two numbers in a horizontal row according to a set order, and an initial number matrix corresponding to the photovoltaic module is constructed based on the number.

[0110] S211. Set the numbers in the initial digital matrix corresponding to the photovoltaic modules in the obstructed areas and blank areas to zero, and determine the updated initial digital matrix as the target digital matrix.

[0111] S212. Determine if the target number matrix contains rows of all zeros. If yes, proceed to step S214; otherwise, proceed to step S213.

[0112] S213, Do not update the target number matrix.

[0113] S214. Remove all zero rows from the target number matrix and determine the updated target number matrix.

[0114] S215. Obtain the target digital matrix required for the arrangement of photovoltaic module strings.

[0115] S216. Determine the string arrangement of the photovoltaic modules based on the target digital array.

[0116] Example 3

[0117] Figure 6 This is a schematic diagram of a photovoltaic module string arrangement determination device provided in Embodiment 3 of the present invention. It is applicable to determining the photovoltaic module string arrangement in different power plant scenarios. This device can be implemented in hardware and / or software. Figure 6 As shown, the device includes: a square array acquisition module 31 and a serialization method determination module 32, wherein,

[0118] The array acquisition module 31 is used to acquire the target digital array required for the arrangement of photovoltaic module strings, wherein the target digital array is obtained based on the arrangement of photovoltaic modules in the installation area;

[0119] The wiring method determination module 32 is used to determine the wiring arrangement of photovoltaic modules based on the target digital array.

[0120] Optionally, the device further includes a target digital matrix determination module, which includes:

[0121] The region type acquisition unit is used to acquire the region type of the installation region;

[0122] The blank area repair determination unit is used to determine the blank area to be repaired associated with the installation area based on the area type and the preset processing strategy corresponding to the area type.

[0123] The target digital matrix determination unit is used to determine the target digital matrix corresponding to the photovoltaic modules according to the number of photovoltaic modules in the installation area, the obstacle-blocked area, and the repair blank area, and in accordance with the preset mapping rules.

[0124] Furthermore, the blank area is repaired to determine the unit, specifically for:

[0125] If the area type is flat, then it is determined that there is no associated blank area to be repaired in the installation area;

[0126] If the area type is irregular, the maximum distance between the horizontal and vertical opposite sides of the installation area is used as the benchmark to repair the installation area into a rectangle. The area within the rectangle, excluding the installation area and the area blocked by obstacles, is defined as the repair blank area associated with the installation area. The maximum distance between the horizontal and vertical opposite sides is determined based on the side lengths of each side of the installation area.

[0127] Furthermore, if the installation area is a roof, the area type also includes main and auxiliary room types, and the blank area is used to determine the unit, specifically for:

[0128] If the area type is a main auxiliary building type, then the roof of the main auxiliary building is treated as a whole. Based on the maximum distance between the horizontal and vertical opposite sides of the whole, the whole is repaired into a rectangle. The area within the rectangle, excluding the installation area and the area blocked by obstacles, is defined as the repair blank area associated with the installation area. The maximum distance between the horizontal and vertical opposite sides is determined according to the side length of each side of the installation area.

[0129] Optionally, the target digital matrix determining unit is specifically used for:

[0130] Based on the dimensions of the installation area and the dimensions of the photovoltaic modules, determine the initial number of photovoltaic modules to be arranged in the installation area;

[0131] Based on the size of the obstruction area and the size of the photovoltaic modules, determine the second number of photovoltaic modules to be arranged in the obstruction area;

[0132] Based on the size of the vacant area to be repaired and the size of the photovoltaic modules, determine the third number of photovoltaic modules to be arranged in the vacant area to be repaired;

[0133] Based on the first quantity, the second quantity, and the third quantity, each photovoltaic module is mapped to a different number in a set order, and an initial number matrix corresponding to the photovoltaic module is constructed based on the number. Each photovoltaic module corresponds one-to-one with each number in the initial number matrix.

[0134] Set the numbers in the initial digital matrix corresponding to the photovoltaic modules in the obstructed area and the repaired blank area to zero, and determine the updated initial digital matrix as the target digital matrix.

[0135] Furthermore, the target number matrix determination unit is used to map each photovoltaic module to different numerical numbers according to a set order, including:

[0136] If the photovoltaic modules are arranged vertically, then the photovoltaic modules are mapped to a numerical number;

[0137] If the photovoltaic modules are arranged horizontally, the photovoltaic modules are mapped to two numerical codes, and the first of the two numerical codes is used as the label.

[0138] Optionally, the device further includes a horizontal division module for:

[0139] If there are photovoltaic modules arranged in a horizontal row, the number of photovoltaic modules in each string and the number of photovoltaic modules arranged in a horizontal row are determined according to the predetermined number of photovoltaic modules in each string and the predetermined horizontal row division rules. The number of serial numbers in each string of photovoltaic modules corresponds one-to-one with each string of serial numbers.

[0140] Optionally, the device further includes a zero-discharge removal module for:

[0141] If the target number matrix includes rows of all zeros, then remove the rows of all zeros from the target number matrix.

[0142] The photovoltaic module string arrangement determination device provided in the embodiments of the present invention can execute the photovoltaic module string arrangement determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.

[0143] Example 4

[0144] Figure 7 A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0145] like Figure 7As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded into the RAM 43 from storage unit 48. The RAM 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0146] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0147] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the photovoltaic module string arrangement determination method.

[0148] In some embodiments, the photovoltaic module string arrangement determination method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the photovoltaic module string arrangement determination method described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the photovoltaic module string arrangement determination method by any other suitable means (e.g., by means of firmware).

[0149] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0150] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0151] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0152] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0153] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0154] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0155] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0156] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for determining the string arrangement of photovoltaic modules, characterized in that, include: Obtain the target digital matrix required for the arrangement of photovoltaic module strings, wherein the target digital matrix is ​​obtained based on the arrangement of photovoltaic modules in the installation area; Based on the target digital matrix, determine the string arrangement of the photovoltaic modules; The step of determining the target digital matrix includes: Obtain the region type of the installation area; Based on the region type and the preset processing strategy corresponding to the region type, the repair blank area associated with the installation region is determined; Based on the number of photovoltaic modules in the installation area, the obstacle-blocked area, and the repair blank area, the target digital matrix corresponding to the photovoltaic modules is determined according to the preset mapping rules. The step of determining the repair blank area associated with the installation area based on the area type and the preset processing strategy corresponding to the area type includes: If the area type is flat, then it is determined that the installation area has no associated repair blank area; If the area type is irregular, the installation area is repaired into a rectangle based on the maximum distance between the horizontal and vertical opposite sides of the installation area. The area within the rectangle, excluding the installation area and the area obscured by the obstacle, is defined as the repair blank area associated with the installation area. The maximum distance between the horizontal and vertical opposite sides is determined based on the side lengths of each side of the installation area. The step of determining the target digital matrix corresponding to the photovoltaic modules according to a preset mapping rule based on the number of photovoltaic modules in the installation area, the obstacle-blocked area, and the repair blank area includes: Based on the dimensions of the installation area and the dimensions of the photovoltaic modules, determine the first number of photovoltaic modules to be arranged in the installation area; Based on the size of the obstacle-shaded area and the size of the photovoltaic module, determine the second number of photovoltaic modules arranged in the obstacle-shaded area; Based on the size of the repaired blank area and the size of the photovoltaic module, determine the third number of photovoltaic modules to be arranged in the repaired blank area; Based on the first quantity, the second quantity, and the third quantity, each photovoltaic module is mapped to a different number in a set order, and an initial number matrix corresponding to the photovoltaic module is constructed based on the number. Each photovoltaic module corresponds one-to-one with each number in the initial number matrix. Set the numerical numbers in the initial digital matrix corresponding to the photovoltaic modules in the obstacle-blocked area and the repaired blank area to zero, and determine the updated initial digital matrix as the target digital matrix.

2. The method according to claim 1, characterized in that, If the installation area is a roof, the area type also includes the main and auxiliary room type; The step of determining the repair blank area associated with the installation area based on the area type and the preset processing strategy corresponding to the area type includes: If the area type is a main auxiliary building type, then the roof of the main auxiliary building is treated as a whole. Based on the maximum distance between the horizontal and vertical opposite sides of the whole, the whole is repaired into a rectangle. The area within the rectangle, excluding the installation area and the area blocked by the obstacle, is defined as the repair blank area associated with the installation area. The maximum distance between the horizontal and vertical opposite sides is determined according to the side lengths of each side of the installation area.

3. The method according to claim 1, characterized in that, The step of mapping each photovoltaic module to a different numerical number in a predetermined order includes: If the photovoltaic modules are arranged vertically, then the photovoltaic modules are mapped to a numerical designation; If the photovoltaic modules are arranged horizontally, the photovoltaic modules are mapped to two numerical codes, and the first numerical code is used as the marker.

4. The method according to claim 1, characterized in that, After determining the target digital matrix corresponding to the photovoltaic module, the method further includes: If there are photovoltaic modules arranged in a horizontal row, the number of each string of numbers corresponding to the target number matrix is ​​determined based on the number of photovoltaic modules contained in each string and the number of photovoltaic modules arranged in a horizontal row, combined with the preset horizontal row division rules.

5. The method according to claim 1, characterized in that, Also includes: If the target number matrix includes rows of all zeros, then remove the rows of all zeros from the target number matrix.

6. A device for determining the string arrangement of photovoltaic modules, characterized in that, include: The array acquisition module is used to acquire the target digital array required for the arrangement of photovoltaic module strings, wherein the target digital array is obtained based on the arrangement of photovoltaic modules in the installation area; The wiring arrangement determination module is used to determine the wiring arrangement of the photovoltaic modules based on the target digital matrix. The device further includes a target digital matrix determination module, which comprises: A region type acquisition unit is used to acquire the region type of the installation region. The blank area repair determination unit is used to determine the blank area to be repaired associated with the installation area based on the area type and a preset processing strategy corresponding to the area type. The target digital matrix determination unit is used to determine the target digital matrix corresponding to the photovoltaic module according to the number of photovoltaic modules in the installation area, the obstacle-blocked area and the repair blank area, and according to a preset mapping rule. The blank area repair determination unit is specifically used for: If the area type is flat, then it is determined that the installation area has no associated repair blank area; If the area type is irregular, the installation area is repaired into a rectangle based on the maximum distance between the horizontal and vertical opposite sides of the installation area. The area within the rectangle, excluding the installation area and the area obscured by the obstacle, is defined as the repair blank area associated with the installation area. The maximum distance between the horizontal and vertical opposite sides is determined based on the side lengths of each side of the installation area. The target digital matrix determination unit is specifically used for: Based on the dimensions of the installation area and the dimensions of the photovoltaic modules, determine the first number of photovoltaic modules to be arranged in the installation area; Based on the size of the obstacle-shaded area and the size of the photovoltaic module, determine the second number of photovoltaic modules arranged in the obstacle-shaded area; Based on the size of the repaired blank area and the size of the photovoltaic module, determine the third number of photovoltaic modules to be arranged in the repaired blank area; Based on the first quantity, the second quantity, and the third quantity, each photovoltaic module is mapped to a different number in a set order, and an initial number matrix corresponding to the photovoltaic module is constructed based on the number. Each photovoltaic module corresponds one-to-one with each number in the initial number matrix. Set the numerical numbers in the initial digital matrix corresponding to the photovoltaic modules in the obstacle-blocked area and the repaired blank area to zero, and determine the updated initial digital matrix as the target digital matrix.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the photovoltaic module string arrangement determination method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the photovoltaic module string arrangement determination method according to any one of claims 1-5.