Spray point planning method, device and equipment based on CAD, and storage medium

CN115270214BActive Publication Date: 2026-10-30PINLAN (HANGZHOU) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210798376.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-05
Publication Date
2026-10-30
Estimated Expiration
2042-07-05

AI Technical Summary

Technical Problem

[0004]本发明的主要目的在于提供一种基于CAD的喷淋点位规划方法、装置、设备及存储介质,旨在解决现有技术如何提升喷淋点位规划效率的技术问题

Benefits of technology

[0037]本发明通过选取CAD图纸上的待规划区域;将所述待规划区域网格化,得到网格化待规划区域;根据所述网格化待规划区域和预设规划规则得到模型输入参数;根据所述模型输入参数建立整数规划模型;根据所述整数规划模型计算得到喷淋点位在所述网格化待规划区域上的坐标;根据所述喷淋点位的坐标在所述CAD图纸上规划喷淋点位。通过上述方式,基于整数线性规划模型的布置方法能够综合考虑喷淋布置规范、并最优化喷淋点位数量以及整齐度的需求,使得CAD图纸自动布置喷淋点位合理有效,减少人力和时间的成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115270214B_ABST
    Figure CN115270214B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of building fire protection planning, and discloses a spraying point position planning method, device and equipment based on CAD and a storage medium. The method comprises the following steps: selecting a region to be planned on a CAD drawing; gridizing the region to be planned to obtain a gridized region to be planned; obtaining model input parameters according to the gridized region to be planned and a preset planning rule; establishing an integer programming model according to the model input parameters; calculating the coordinates of spraying point positions on the gridized region to be planned according to the integer programming model; and planning the spraying point positions on the CAD drawing according to the coordinates of the spraying point positions. Through the above method, the arrangement method based on the integer linear programming model can comprehensively consider the spraying arrangement specification and optimize the number and uniformity of the spraying point positions, so that the CAD drawing automatically arranges the spraying point positions reasonably and effectively, and the cost of manpower and time is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of building fire protection planning technology, and in particular to a CAD-based method, apparatus, equipment and storage medium for planning sprinkler locations. Background Technology

[0002] In architectural design drawings, fire sprinklers need to be placed on the building floor plan. For safety and reliability, the basic principle of placement is that the sprinkler coverage area should cover the entire interior space of the building. Currently, the placement method involves designers manually drawing the sprinkler positions according to building construction specifications. This is time-consuming, labor-intensive, and prone to errors.

[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this invention is to provide a CAD-based method, apparatus, equipment, and storage medium for spray point planning, aiming to solve the technical problem of how to improve the efficiency of spray point planning in the prior art.

[0005] To achieve the above objectives, the present invention provides a CAD-based method for planning sprinkler locations, the method comprising the following steps:

[0006] Select the area to be planned on the CAD drawing;

[0007] The area to be planned is divided into grids to obtain a gridded area to be planned;

[0008] The model input parameters are obtained based on the gridded area to be planned and the preset planning rules;

[0009] Establish an integer programming model based on the input parameters of the model;

[0010] The coordinates of the spray points on the gridded area to be planned are calculated based on the integer programming model.

[0011] The spray points are planned on the CAD drawing based on their coordinates.

[0012] Optionally, establishing the integer programming model based on the model input parameters includes:

[0013] Establish the objective function based on the model input parameters;

[0014] Establish constraint rules based on the model input parameters;

[0015] An integer programming model is generated based on the objective function and the constraint rules.

[0016] Optionally, establishing the objective function based on the model input parameters includes:

[0017] Based on the model input parameters, the following are obtained: nozzle quantity weight, alignment weight, first decision variable, second decision variable, set of possible sprinkler placement points, set of alignment lines, target point, and alignment lines.

[0018] An objective function is established based on the nozzle quantity weight, the alignment weight, the first decision variable, the second decision variable, the set of placeable spray points, the set of alignment lines, the target point, and the alignment lines.

[0019] Optionally, establishing constraint rules based on the model input parameters includes:

[0020] Based on the model input parameters, the third decision variable, target point, distance between points, longest distance between nozzle and adjacent wall, and set of wall and beam edges are obtained.

[0021] A first constraint rule is established based on the third decision variable, the target point, the distance between the points, the longest distance between the nozzle and the adjacent wall, and the set of wall beam edges. The constraint rule includes the first constraint rule.

[0022] Optionally, establishing constraint rules based on the model input parameters includes:

[0023] Based on the model input parameters, the third decision variable, target point location, distance between points, nozzle spray range, and point set are obtained.

[0024] A second constraint rule is established based on the third decision variable, the target point, the distance between the points, the spray range of the nozzle, and the point set. The constraint rule includes the second constraint rule.

[0025] Optionally, establishing constraint rules based on the model input parameters includes:

[0026] Based on the model input parameters, the first decision variable, the second decision variable, the target point, the set of alignment lines, and the alignment lines are obtained.

[0027] A third constraint rule is established based on the first decision variable, the second decision variable, the target point, the alignment line set, and the alignment lines. The constraint rule includes the third constraint rule.

[0028] Furthermore, to achieve the above objectives, the present invention also proposes a CAD-based sprinkler point planning device, the CAD-based sprinkler point planning device comprising:

[0029] The selection module is used to select the area to be planned on the CAD drawing;

[0030] The gridding module is used to grid the area to be planned, thereby obtaining a gridded area to be planned.

[0031] The acquisition module is used to obtain model input parameters based on the gridded area to be planned and the preset planning rules;

[0032] A module is established to build an integer programming model based on the input parameters of the model.

[0033] The calculation module is used to calculate the coordinates of the spray points on the gridded planning area according to the integer programming model;

[0034] The planning module is used to plan the spray point locations on the CAD drawing based on the coordinates of the spray point locations.

[0035] Furthermore, to achieve the above objectives, the present invention also proposes a CAD-based sprinkler point planning device, which includes: a memory, a processor, and a CAD-based sprinkler point planning program stored in the memory and executable on the processor. The CAD-based sprinkler point planning program is configured to implement the steps of the CAD-based sprinkler point planning method described above.

[0036] Furthermore, to achieve the above objectives, the present invention also proposes a storage medium storing a CAD-based sprinkler point planning program, wherein when the CAD-based sprinkler point planning program is executed by a processor, it implements the steps of the CAD-based sprinkler point planning method described above.

[0037] This invention selects a planned area on a CAD drawing; grids the planned area to obtain a gridded planned area; obtains model input parameters based on the gridded planned area and preset planning rules; establishes an integer programming model based on the model input parameters; calculates the coordinates of the sprinkler points on the gridded planned area based on the integer programming model; and plans the sprinkler points on the CAD drawing based on the coordinates of the sprinkler points. Through this method, the layout method based on the integer linear programming model can comprehensively consider the requirements of sprinkler layout specifications and optimize the number and neatness of sprinkler points, making the automatic layout of sprinkler points on CAD drawings reasonable and effective, reducing labor and time costs. Attached Figure Description

[0038] Figure 1 This is a schematic diagram of the structure of a CAD-based spray point planning device for the hardware operating environment involved in the embodiments of the present invention;

[0039] Figure 2 This is a flowchart illustrating the first embodiment of the CAD-based sprinkler point planning method of the present invention.

[0040] Figure 3 This is a diagram illustrating the actual effect of the first embodiment of the CAD-based sprinkler point planning method of the present invention.

[0041] Figure 4 This is a structural block diagram of the first embodiment of the CAD-based spray point planning device of the present invention.

[0042] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0043] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0044] Reference Figure 1 , Figure 1 This is a schematic diagram of the CAD-based spray point planning equipment structure for the hardware operating environment involved in the embodiments of the present invention.

[0045] like Figure 1 As shown, the CAD-based sprinkler point planning device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0046] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on CAD-based sprinkler point planning equipment and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0047] like Figure 1As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a CAD-based sprinkler point planning program.

[0048] exist Figure 1 In the CAD-based sprinkler location planning device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the CAD-based sprinkler location planning device of the present invention can be set in the CAD-based sprinkler location planning device. The CAD-based sprinkler location planning device calls the CAD-based sprinkler location planning program stored in the memory 1005 through the processor 1001 and executes the CAD-based sprinkler location planning method provided in the embodiment of the present invention.

[0049] This invention provides a CAD-based method for planning sprinkler locations, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of a CAD-based sprinkler point planning method according to the present invention.

[0050] In this embodiment, the CAD-based sprinkler point planning method includes the following steps:

[0051] Step S10: Select the area to be planned on the CAD drawing.

[0052] It should be noted that the execution subject of this embodiment is a CAD-based sprinkler point planning device. This device can be a computer, server, or other device with computing capabilities, or other devices that can achieve the same function. This embodiment does not impose any restrictions.

[0053] In practice, CAD drawings represent the overall layout of an engineering project, including the building's external shape, internal arrangement, structural details, interior and exterior finishes, materials, equipment, and construction methods, all created using AutoCAD software. In architectural electrical construction drawings, floor plans typically provide a macroscopic description of the building's location and main structure, downplaying walls, doors, windows, beams, and columns, while highlighting electrical wiring. Other pipelines, such as plumbing and gas lines, are not shown on the electrical construction drawings.

[0054] An architectural floor plan, also known simply as a floor plan, is a drawing that uses a horizontal projection method and corresponding symbols to depict the walls, doors, windows, stairs, floors, and internal functional layout of a newly constructed building or structure. It reflects the building's plan shape, size, and arrangement; the location, dimensions, and materials of walls and columns; and the type and location of doors and windows.

[0055] Fire sprinkler systems are a type of fire extinguishing device, a widely used fixed fire protection facility characterized by low cost and high extinguishing efficiency. They can be divided into two types based on function: manual control and automatic control. Systems equipped with alarm devices can automatically sound an alarm in the event of a fire. Automatically controlled fire sprinkler systems can automatically spray and work in conjunction with other fire protection facilities, thus effectively controlling and extinguishing initial fires. Therefore, the rational layout and planning of sprinkler points is crucial for building fire safety.

[0056] In practice, CAD drawings contain many areas of the building, and the sprinkler points need to be arranged in the building floor plan by area. The area to be planned is determined from the CAD drawings based on the designer's selection.

[0057] Step S20: Grid the area to be planned to obtain a gridded area to be planned.

[0058] Understandably, gridding, also known as rasterization, refers to mapping CAD drawings to coordinates, thereby enabling more precise determination of positions on the CAD drawings. Gridding the area to be planned yields a gridded area to be planned.

[0059] It should be noted that the grid spacing can be set by the designer or automatically set according to the line length and other markings on the CAD drawing, thereby achieving full automation in this embodiment.

[0060] Step S30: Obtain model input parameters based on the gridded area to be planned and the preset planning rules.

[0061] In practice, the design of sprinkler locations must comply with construction specifications. The basic principles for arranging sprinkler locations are as follows:

[0062] 1. Distance between nozzle and adjacent wall: 300mm~1700mm; when multiple rows are arranged, the distance between adjacent nozzles: 1800mm~3400mm.

[0063] 2. Spacing between the nozzle and adjacent beam:

[0064] Current beam height and nozzle placement principles:

[0065] When the beam height is less than 700mm, the effect of the beam height on the nozzle is ignored. When the beam height is greater than 700mm, the horizontal distance between the nozzle and the beam is shown in Table 1.

[0066] Table 1

[0067] 700≤h<800 300≤a 800≤h<900 600≤a 900≤h<1000 900≤a 1000≤h<1100 1200≤a 1100≤h<1200 1500≤a 1200≤h Sprinklers installed at the bottom of the beam

[0068] The sprinklers on both sides of the beam should meet the minimum distance from the sprinkler head to the beam edge, and the sprinklers on both sides of the beam should meet the spacing requirements in Article 1. When the sprinklers on both sides of the beam cannot simultaneously meet the requirements in the table and Article 1, sprinklers should be added at the bottom of the beam, and the distance between the sprinkler head and the beam edge should be controlled according to the distance requirements between the sprinkler head and the wall.

[0069] 3. When the nozzles are arranged in a single row, the nozzle spacing is 3000mm.

[0070] 4. When the distance between the beam and the wall is very small, and the distance between the beam and the wall cannot be met at the same time, then one or a row of beams can be placed in the middle of the beam and the wall.

[0071] 5. Aesthetic requirements for sprinkler locations:

[0072] (1) The horizontal and vertical directions are parallel to the building outline.

[0073] (2) The nozzles are evenly distributed in the same space.

[0074] (3) The distance between the nozzles, the distance to the wall, and the distance to the beam are all integers, i.e., the units digit is 0.

[0075] (4) Positions with the same spacing have consistent spacing. Minimum quantity.

[0076] It is understandable that the above principles must be met when arranging sprinkler points in order for the sprinkler point arrangement scheme to be feasible. Therefore, it is necessary to grid the area to be planned and obtain the model input parameters by pre-setting planning rules. The pre-setting planning rules are the mathematical expression of the above arrangement principles.

[0077] In the specific implementation, the parameters are shown in Table 2 below:

[0078] Table 2

[0079]

[0080] Step S40: Establish an integer programming model based on the input parameters of the model.

[0081] Furthermore, in order to better plan the sprinkler locations, the step of establishing an integer programming model based on the model input parameters includes:

[0082] Establish the objective function based on the model input parameters;

[0083] Establish constraint rules based on the model input parameters;

[0084] An integer programming model is generated based on the objective function and the constraint rules.

[0085] Further, establishing the objective function based on the model input parameters includes:

[0086] Based on the model input parameters, the following are obtained: nozzle quantity weight, alignment weight, first decision variable, second decision variable, set of possible sprinkler placement points, set of alignment lines, target point, and alignment lines.

[0087] An objective function is established based on the nozzle quantity weight, the alignment weight, the first decision variable, the second decision variable, the set of placeable spray points, the set of alignment lines, the target point, and the alignment lines.

[0088] In the specific implementation, the objective function is as follows:

[0089]

[0090] In Formula 1, w x As a weight for the number of nozzles, w y For alignment weights, x i y is the first decision variable. k The second decision variable is denoted by i, which is any point on the gridded area to be planned; R is the set of possible sprinkler placement points, which is the set of all possible sprinkler placement points on the gridded area to be planned; k is the alignment line, which is the aligned line on the gridded area to be planned; and K is the set of alignment lines, which is the set of all aligned lines on the gridded area to be planned. Minimize means to minimize.

[0091] Understandably, the objective function is a weighted average of the number of nozzles and their alignment, aiming to minimize the number of nozzles while maximizing their neatness.

[0092] Furthermore, establishing constraint rules based on the model input parameters includes:

[0093] Based on the model input parameters, the third decision variable, target point, distance between points, longest distance between nozzle and adjacent wall, and set of wall and beam edges are obtained.

[0094] A first constraint rule is established based on the third decision variable, the target point, the distance between the points, the longest distance between the nozzle and the adjacent wall, and the set of wall beam edges. The constraint rule includes the first constraint rule.

[0095] In the specific implementation, the first constraint rule is as follows:

[0096]

[0097] In Formula 2, j is the target point, which is not the same as target point i. ij x is the distance between point i and point j. jAs the third decision variable, E is the set of wall and beam edges, i.e., the set of edge points of walls and beams in the gridded area to be planned, and L2 is the third decision variable. max This is the longest distance between the nozzle and the adjacent wall.

[0098] Understandably, the first constraint rule states that there must be a sprinkler point within the maximum distance of the wall point.

[0099] Furthermore, establishing constraint rules based on the model input parameters includes:

[0100] Based on the model input parameters, the third decision variable, target point location, distance between points, nozzle spray range, and point set are obtained.

[0101] A second constraint rule is established based on the third decision variable, the target point, the distance between the points, the spray range of the nozzle, and the point set. The constraint rule includes the second constraint rule.

[0102] In the specific implementation, the second constraint rule is as follows:

[0103]

[0104] In Formula 3, j is the target point, which is not the same as target point i. ij x is the distance between point i and point j. j The third decision variable is L, which is the spray range of the sprinkler head, and P is the point set, which is the set of all points in the gridded area to be planned.

[0105] It should be noted that the second constraint rule means that any point in the gridded area to be planned is within the spray range of a certain nozzle.

[0106] Furthermore, establishing constraint rules based on the model input parameters includes:

[0107] Based on the model input parameters, the first decision variable, the second decision variable, the target point, the set of alignment lines, and the alignment lines are obtained.

[0108] A third constraint rule is established based on the first decision variable, the second decision variable, the target point, the alignment line set, and the alignment lines. The constraint rule includes the third constraint rule.

[0109] In the specific implementation, the third constraint rule is as follows:

[0110] y k ≥x i , i∈k, k∈K Formula 4;

[0111] In formula 4, xi y is the first decision variable. k Let i be the target point, k be the alignment line, and K be the set of alignment lines.

[0112] Understandably, the third constraint rule represents the alignment of the spray points.

[0113] Finally, the integer programming model is obtained based on the above formula.

[0114] Step S50: Calculate the coordinates of the spray points on the gridded planning area according to the integer programming model.

[0115] In practice, solving the integer programming model yields the coordinates of the sprinkler points on the gridded area to be planned, thus determining the location of the sprinkler points.

[0116] Step S60: Plan the spray point locations on the CAD drawing according to the coordinates of the spray point locations.

[0117] Finally, the gridded area to be planned is restored to the CAD drawing, thereby determining the location of the sprinkler points in the CAD drawing.

[0118] Actual renderings are as follows Figure 3 As shown, solid circles represent sprinkler points, dashed lines represent walls, and solid lines represent beams.

[0119] This embodiment selects a planned area on a CAD drawing; grids the planned area to obtain a gridded planned area; obtains model input parameters based on the gridded planned area and preset planning rules; establishes an integer programming model based on the model input parameters; calculates the coordinates of the sprinkler points on the gridded planned area based on the integer programming model; and plans the sprinkler points on the CAD drawing based on the coordinates of the sprinkler points. Through this method, the layout method based on the integer linear programming model can comprehensively consider the sprinkler layout specifications and optimize the number and neatness requirements, making the automatic layout of sprinkler points on CAD drawings reasonable and effective, reducing manpower and time costs.

[0120] Furthermore, this embodiment of the invention also proposes a storage medium storing a CAD-based sprinkler point planning program, which, when executed by a processor, implements the steps of the CAD-based sprinkler point planning method described above.

[0121] Since this storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.

[0122] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the CAD-based spray point planning device of the present invention.

[0123] like Figure 4 As shown, the CAD-based sprinkler point planning device proposed in this embodiment of the invention includes:

[0124] Select module 10 to select the area to be planned on the CAD drawing;

[0125] The gridding module 20 is used to grid the area to be planned to obtain a gridded area to be planned.

[0126] The acquisition module 30 is used to obtain model input parameters based on the gridded area to be planned and the preset planning rules;

[0127] Module 40 is used to establish an integer programming model based on the model input parameters.

[0128] Calculation module 50 is used to calculate the coordinates of the spray points on the gridded planning area according to the integer programming model;

[0129] The planning module 60 is used to plan the spray point locations on the CAD drawing based on the coordinates of the spray point locations.

[0130] In one embodiment, the establishment module 40 is further configured to establish an objective function based on the model input parameters; establish constraint rules based on the model input parameters; and generate an integer programming model based on the objective function and the constraint rules.

[0131] In one embodiment, the establishment module 40 is further configured to obtain, based on the model input parameters, the nozzle quantity weight, alignment weight, first decision variable, second decision variable, set of placeable sprinkler points, set of alignment lines, target point, and alignment lines; and to establish an objective function based on the nozzle quantity weight, alignment weight, first decision variable, second decision variable, set of placeable sprinkler points, set of alignment lines, target point, and alignment lines.

[0132] In one embodiment, the establishment module 40 is further configured to obtain a third decision variable, target point, distance between points, longest distance between nozzle and adjacent wall, and wall beam edge set based on the model input parameters; and to establish a first constraint rule based on the third decision variable, target point, distance between points, longest distance between nozzle and adjacent wall, and wall beam edge set, wherein the constraint rule includes the first constraint rule.

[0133] In one embodiment, the establishment module 40 is further configured to obtain a third decision variable, target point, distance between points, nozzle spray range, and point set based on the model input parameters; and to establish a second constraint rule based on the third decision variable, the target point, the distance between points, the nozzle spray range, and the point set, wherein the constraint rule includes the second constraint rule.

[0134] In one embodiment, the establishment module 40 is further configured to obtain a first decision variable, a second decision variable, a target point, a set of alignment lines, and alignment lines based on the model input parameters; and to establish a third constraint rule based on the first decision variable, the second decision variable, the target point, the set of alignment lines, and the alignment lines, wherein the constraint rule includes the third constraint rule.

[0135] It should be understood that the above are merely illustrative examples and do not constitute any limitation on the technical solutions of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any restrictions on this.

[0136] This embodiment selects a planned area on a CAD drawing; grids the planned area to obtain a gridded planned area; obtains model input parameters based on the gridded planned area and preset planning rules; establishes an integer programming model based on the model input parameters; calculates the coordinates of the sprinkler points on the gridded planned area based on the integer programming model; and plans the sprinkler points on the CAD drawing based on the coordinates of the sprinkler points. Through this method, the layout method based on the integer linear programming model can comprehensively consider the sprinkler layout specifications and optimize the number and neatness requirements, making the automatic layout of sprinkler points on CAD drawings reasonable and effective, reducing manpower and time costs.

[0137] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.

[0138] In addition, for technical details not described in detail in this embodiment, please refer to the CAD-based sprinkler point planning method provided in any embodiment of the present invention, which will not be repeated here.

[0139] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0140] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0141] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0142] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A CAD-based method for planning sprinkler locations, characterized in that, The CAD-based sprinkler point planning method includes: Select the area to be planned on the CAD drawing; The area to be planned is divided into grids to obtain a gridded area to be planned; The model input parameters are obtained based on the gridded area to be planned and the preset planning rules; Establish an integer programming model based on the input parameters of the model; The coordinates of the spray points on the gridded area to be planned are calculated based on the integer programming model. Plan the spray points on the CAD drawing according to their coordinates; The step of establishing an integer programming model based on the model input parameters includes: Establish the objective function based on the model input parameters; Establish constraint rules based on the model input parameters; Generate an integer programming model based on the objective function and the constraint rules; The step of establishing the objective function based on the model input parameters includes: Based on the model input parameters, the following are obtained: nozzle quantity weight, alignment weight, first decision variable, second decision variable, set of possible sprinkler placement points, set of alignment lines, target point, and alignment lines. An objective function is established based on the nozzle quantity weight, the alignment weight, the first decision variable, the second decision variable, the set of placeable sprinkler points, the set of alignment lines, the target point, and the alignment lines. The objective function is as follows: (1); in, As a weight for the number of nozzles, For alignment weight, As the first decision variable, The second decision variable is i, which is any point on the gridded area to be planned. R is the set of places where sprinklers can be placed, which is the set of all places where sprinklers can be placed on the gridded area to be planned. k is the alignment line, which is the aligned line on the gridded area to be planned. K is the set of alignment lines, which is the set of all aligned lines on the gridded area to be planned. Minimize means to minimize.

2. The method as described in claim 1, characterized in that, The step of establishing the objective function based on the model input parameters includes: Based on the model input parameters, the following are obtained: nozzle quantity weight, alignment weight, first decision variable, second decision variable, set of possible sprinkler placement points, set of alignment lines, target point, and alignment lines. An objective function is established based on the nozzle quantity weight, the alignment weight, the first decision variable, the second decision variable, the set of placeable spray points, the set of alignment lines, the target point, and the alignment lines.

3. The method as described in claim 1, characterized in that, The step of establishing constraint rules based on the model input parameters includes: Based on the model input parameters, the third decision variable, target point, distance between points, longest distance between nozzle and adjacent wall, and set of wall and beam edges are obtained. A first constraint rule is established based on the third decision variable, the target point, the distance between the points, the longest distance between the nozzle and the adjacent wall, and the set of wall beam edges. The constraint rule includes the first constraint rule.

4. The method as described in claim 1, characterized in that, The step of establishing constraint rules based on the model input parameters includes: Based on the model input parameters, the third decision variable, target point location, distance between points, nozzle spray range, and point set are obtained. A second constraint rule is established based on the third decision variable, the target point, the distance between the points, the spray range of the nozzle, and the point set. The constraint rule includes the second constraint rule.

5. The method as described in claim 1, characterized in that, The step of establishing constraint rules based on the model input parameters includes: Based on the model input parameters, the first decision variable, the second decision variable, the target point, the set of alignment lines, and the alignment lines are obtained. A third constraint rule is established based on the first decision variable, the second decision variable, the target point, the alignment line set, and the alignment lines. The constraint rule includes the third constraint rule.

6. A CAD-based sprinkler point planning device, capable of implementing the method described in any one of claims 1-5, characterized in that, The CAD-based sprinkler point planning device includes: The selection module is used to select the area to be planned on the CAD drawing; The gridding module is used to grid the area to be planned, thereby obtaining a gridded area to be planned. The acquisition module is used to obtain model input parameters based on the gridded area to be planned and the preset planning rules; A module is established to build an integer programming model based on the input parameters of the model. The calculation module is used to calculate the coordinates of the spray points on the gridded planning area according to the integer programming model; The planning module is used to plan the spray point locations on the CAD drawing based on the coordinates of the spray point locations.

7. The apparatus as claimed in claim 6, characterized in that, The establishment module is further configured to establish an objective function based on the model input parameters; establish constraint rules based on the model input parameters; and generate an integer programming model based on the objective function and the constraint rules.

8. A CAD-based sprinkler point planning device, characterized in that, The device includes: a memory, a processor, and a CAD-based sprinkler location planning program stored in the memory and executable on the processor, the CAD-based sprinkler location planning program being configured to implement the CAD-based sprinkler location planning method as described in any one of claims 1 to 5.

9. A storage medium, characterized in that, The storage medium stores a CAD-based sprinkler location planning program, which, when executed by a processor, implements the CAD-based sprinkler location planning method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Spraying system based on BIM model, spraying head based on the spraying system and pipeline generation type design method

    CN112560212A

  • Method and device for arranging fire sprayers in batches by considering room inner beams and storage medium

    CN113538466A