Building multi-working-condition batch simulation data generation method, equipment and medium
By adjusting the source file and generating multiple target source files, the problem that EnergyPlus cannot perform complex object-level adjustments and batch simulations is solved, and the applicability and efficiency of simulated data is improved, and it is suitable for multi-case scenarios.
Patent Information
- Application Number
- CN202411328121.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-23
AI Technical Summary
The existing building simulation software EnergyPlus cannot perform complex object-level adjustments and batch simulations, resulting in poor applicability and flexibility of generated simulation data and cannot meet the needs of multi-condition scenarios.
The source files are quickly adjusted through configuration files, and at least two target parameter adjustment methods are used to generate multiple target source files, and run these files based on the target building simulation software to generate batch simulation data.
It improves the applicability, flexibility and generation efficiency of simulated data, can effectively cover various scenarios, support complex operations and multi-case simulation, and is suitable for training and learning of AI large models.
Smart Images

Figure CN119293906A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data generation, and in particular to a method, device and medium for generating batch simulation data of multiple working conditions of a building. Background Art
[0002] Building simulation software (such as EnergyPlus) can be used to comprehensively simulate the building's cooling, heating, lighting, ventilation, equipment operation, and energy consumption. In some scenarios where the amount of actual data is insufficient, such as the training and learning process of large building AI models, using EnergyPlus to quickly generate a large amount of data through multi-condition batch simulation is a good way to supplement data.
[0003] EnergyPlus itself does not support multi-condition simulation. Currently, some third-party software provides similar functions, but there are some functional limitations. It can only make simple parameter value adjustments, cannot make complex object-level adjustments, and does not support batch simulation. The above functional limitations make the generated simulation data subject to greater restrictions in use, and cannot be well applied to different scenarios, so the applicability and flexibility are poor. Summary of the invention
[0004] The present invention provides a method, device and medium for generating batch simulation data of multiple working conditions of a building, which can quickly adjust the source file based on the configuration file so as to quickly and conveniently generate batch simulation data of multiple working conditions of a building, thereby improving the applicability, flexibility and generation efficiency of the simulation data.
[0005] According to one aspect of the present invention, a method for generating batch simulation data of multiple working conditions of a building is provided, the method comprising:
[0006] Determine a target configuration file corresponding to the target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for the reference source file;
[0007] According to the at least two target parameter adjustment methods, parameters of the reference source files are adjusted respectively to obtain at least two target source files;
[0008] The at least two target source files are run based on the target building simulation software to generate target batch simulation data.
[0009] According to another aspect of the present invention, a device for generating batch simulation data of multiple working conditions of a building is provided, the device comprising:
[0010] A configuration file determination module is used to determine a target configuration file corresponding to a target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for a reference source file;
[0011] A source file parameter adjustment module, used to adjust the parameters of the reference source file according to the at least two target parameter adjustment methods to obtain at least two target source files;
[0012] The batch simulation data generation module is used to run the at least two target source files based on the target building simulation software to generate target batch simulation data.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating building multi-working condition batch simulation data described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating batch simulation data of multiple working conditions of a building as described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention first determines the target configuration file corresponding to the target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for the reference source file; then the reference source file is respectively adjusted according to the at least two target parameter adjustment methods to obtain at least two target source files; finally, at least two target source files are run based on the target building simulation software to generate target batch simulation data. This technical solution can quickly adjust the source file based on the configuration file so as to quickly and conveniently generate batch simulation data of multiple working conditions of the building, can ensure the effective coverage of the simulation data for various scenarios, and improve the applicability, flexibility and generation efficiency of the simulation data.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a method for generating batch simulation data of multiple working conditions of a building according to the first embodiment of the present invention;
[0022] Figure 2A is a schematic diagram of a method for determining target parameter adjustment according to Embodiment 1 of the present invention;
[0023] Figure 2B is a schematic diagram of another method for determining target parameter adjustment according to Embodiment 1 of the present invention;
[0024] Figure 3 This is a schematic diagram of candidate parameter value traversal of a target parameter item provided in Embodiment 1 of the present invention;
[0025] Figure 4 is a schematic diagram of target batch simulation task processing provided according to the first embodiment of the present invention;
[0026] Figure 5 is a schematic diagram of parallel execution of multiple target configuration files provided according to Embodiment 1 of the present invention;
[0027] Figure 6 is a flow chart of a method for generating batch simulation data of multiple working conditions of a building according to a second embodiment of the present invention;
[0028] Figure 7 It is a structural schematic diagram of a device for generating batch simulation data of multiple working conditions of a building according to a third embodiment of the present invention;
[0029] Figure 8 It is a structural schematic diagram of an electronic device for implementing a method for generating batch simulation data of multiple working conditions of a building according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1 This is a flowchart of a method for generating batch simulation data of multiple working conditions of a building provided in the first embodiment of the present invention. This embodiment is applicable to the case of quickly generating batch simulation data of multiple working conditions of a building. The method can be executed by a device for generating batch simulation data of multiple working conditions of a building. The device for generating batch simulation data of multiple working conditions of a building can be implemented in the form of hardware and / or software. The device for generating batch simulation data of multiple working conditions of a building can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0034] S110, determining a target configuration file corresponding to a target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for a reference source file.
[0035] Among them, the target batch simulation task may refer to a batch simulation task under multiple working conditions determined based on the actual building simulation pre-requirements. Exemplarily, the target batch simulation task may be set as the simulated operation of commercial centers in different regions (such as Beijing, Shanghai, etc.) under different building orientations (such as 0°, 90°, etc.), different exterior wall thermal conductivity coefficients (such as 0.8, 1.0, etc.) and different cold station outlet water temperatures (such as 6°C, 7°C, etc.). The reference source file may refer to the input source file of the target building simulation software. Among them, the target building simulation software can be used to perform a comprehensive simulation of the building's refrigeration, heating, lighting, ventilation, equipment operation, energy consumption, etc. Exemplarily, when the target building simulation software uses EnergyPlus, the reference source file is an idf file. The target parameter adjustment method may refer to a method of adjusting the parameters of the reference source file that is predetermined based on the actual building simulation requirements, which can be described in the form of assigning what parameter values to which parameter items.
[0036] In this embodiment, when performing batch simulation of multiple working conditions of a building based on the target building simulation software, it is first necessary to determine the target configuration file (such as a yaml file) corresponding to the target batch simulation task. The target configuration file can be used to describe the use of at least two target parameter adjustment methods for the reference source file, that is, it describes which reference source file is used for parameter adjustment using which target parameter adjustment method. It should be noted that the conventional simulation method directly modifies the parameter values in the reference source file manually. If there are several target parameter adjustment methods, it is necessary to manually modify the reference source file several times. In this case, when the number of target parameter adjustment methods is large, it takes a lot of time to modify the reference source file, which makes the simulation efficiency low, and multiple repetitive work is prone to manual fatigue and modification errors. Therefore, in order to quickly and conveniently set multi-condition parameters for the target batch simulation task, the yaml file configuration method is adopted in this scheme, and a yaml configuration file is written for each target batch simulation task, and the idf file and parameter configuration are defined, so as to determine the target configuration file corresponding to the target batch simulation task.
[0037] In this embodiment, optionally, determining a target configuration file corresponding to a target batch simulation task includes: determining a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to the target batch simulation task; determining a target parameter adjustment method based on a traversal result of at least two candidate parameter values of each target parameter item; determining a reference source file corresponding to the target building object, and determining a target configuration file corresponding to the target batch simulation task according to the reference source file and the target parameter adjustment method.
[0038] Among them, the target building object may refer to the building object that needs to be simulated. Exemplarily, the target building object may be different types of building objects such as office buildings, commercial centers, computer rooms, etc. Among them, one target building object corresponds to a reference source file. The target parameter item may refer to the parameter item that needs to be set. Exemplarily, the target parameter item may include the building orientation, the thermal conductivity coefficient of the exterior wall, the outlet water temperature of the cold station, geographic information, etc. Further, the target parameter item may also include a weather file associated with the geographic information. Among them, the weather file is generally in units of years, describing the typical weather conditions in a certain area within a year, such as temperature, humidity, wind direction and other information. The candidate parameter value may refer to the value of the target parameter item.
[0039] Optionally, the target parameter item includes a single parameter object or multiple parameter objects, and multiple parameter objects are used to describe the same target parameter item. Exemplarily, taking the target parameter item as geographic information, the geographic information is usually described by longitude, latitude, altitude and other information, so as to ensure the accuracy of the geographic information. In this case, the geographic information can be used as a target parameter item, and the longitude, latitude, altitude and other information can be used as multiple parameter objects of the geographic information. Furthermore, if the target parameter item includes a single parameter object, a value of the single parameter object is used as a candidate parameter value of the target parameter item; if the target parameter item includes multiple parameter objects, a group of values of the multiple parameter objects needs to be used as a candidate parameter value of the target parameter item. Exemplarily, when the target parameter item is building orientation, building orientation = 0° is a candidate parameter value for the building orientation, and building orientation = 90° is another candidate parameter value for the building orientation; when the target parameter item is geographic information, longitude = 39.80 and latitude = 116.47 (corresponding to the Beijing area) is a candidate parameter value for the geographic information, and longitude = 31.40 and latitude = 121.45 (corresponding to the Shanghai area) is another candidate parameter value for the geographic information.
[0040] Specifically, when determining the target configuration file corresponding to the target batch simulation task, it is first necessary to determine the target building object, all target parameter items of the target building object, and all candidate parameter values of each target parameter item according to the target batch simulation task, and then traverse at least two candidate parameter values of each target parameter item in turn, and make a Cartesian product combination of each candidate parameter value of each target parameter item to determine all target parameter adjustment methods. Then, determine the corresponding reference source file according to the target building object (one target building object corresponds to one reference source file), and then write a yaml file according to the reference source file and the target parameter adjustment method as the target configuration file corresponding to the target batch simulation task. Setting parameters through the yaml configuration file can take into account both convenience and flexibility, and can also support EnergyPlus to perform complex operations such as object deletion and addition.
[0041] Figure 2A A schematic diagram of a target parameter adjustment method provided in the first embodiment of the present invention is provided, taking the building orientation, exterior wall heat transfer coefficient and cold station outlet water temperature as target parameter items for explanation, and these three target parameter items all include a single parameter object. Among them, in the idf file input by EnergyPlus, the building orientation is 0°, the exterior wall heat transfer coefficient is 1.0, and the cold station outlet water temperature is 6°C; and the candidate parameter values of the building orientation are 0° and 90°, the candidate parameter values of the exterior wall heat transfer coefficient are 0.8 and 1.0, and the candidate parameter values of the cold station outlet water temperature are 6°C and 7°C. Figure 2AAs shown in Figure 1, by traversing and combining the candidate parameter values of building orientation, exterior wall heat transfer coefficient and cold station outlet water temperature, 8 target parameter adjustment methods can be finally obtained, that is, 8 target source files with modified parameters can be obtained (i.e. Figure 2A idf_1-idf_8 in .
[0042] Figure 2B A schematic diagram of another method for determining target parameter adjustment provided in Example 1 of the present invention is used to illustrate the target parameter items by taking the building orientation, exterior wall heat transfer coefficient and geographic information as examples, wherein the geographic information includes multiple parameter objects (i.e., city, longitude and latitude), and different geographic information is associated with different weather files (epw). Among them, the candidate parameter values of the building orientation are 0° and 90°, the candidate parameter values of the exterior wall heat transfer coefficient are 0.8 and 1.0, and the candidate parameter values of the geographic information are [Beijing, 39.80, 116.47] and [Shanghai, 31.40, 121.45]. Figure 2B As shown in the figure, by traversing and combining the candidate parameter values of the building orientation, exterior wall heat transfer coefficient and geographic information (taking longitude and latitude as a whole), 8 target parameter adjustment methods can be finally obtained. In addition, the weather file associated with it can be obtained according to the geographic information, and the weather file can be included in the target parameter item, which can support batch simulation of multiple working conditions in multiple climate zones. It should be noted that when using multiple weather files for multi-condition simulation, the geographic information in the idf file should be automatically modified according to the region to which the weather file belongs to ensure consistency with the weather data. At the same time, since the idf file itself is not associated with the weather file, and the geographic information in the idf file needs to be consistent with the weather file it applies during the simulation, during the parameter transformation process, it is also necessary to record the correspondence between a certain idf file after the transformation and the specific weather file to support the correct execution of subsequent simulations.
[0043] In this embodiment, optionally, a target parameter adjustment method is determined based on a traversal result of at least two candidate parameter values for each target parameter item, including: determining a target parameter node corresponding to each target parameter item; wherein the target parameter node includes a parameter value list, and the parameter value list is used to store at least two candidate parameter values for the target parameter item; for each target parameter node, determining candidate position information of each candidate parameter value in the parameter value list, and traversing the candidate position information to obtain the target position information; assigning a value to the target parameter node according to the target parameter value corresponding to the target position information, and determining the target parameter adjustment method based on the target parameter value of each target parameter node.
[0044] Specifically, each settable target parameter item will correspond to a target parameter node (ParamNode), which contains parameter information (used to characterize what the target parameter item is) and a list of optional parameter values (i.e., parameter value list). Multiple target parameter nodes constitute a parameter setting scheme (i.e., target parameter adjustment method), and these nodes are connected in sequence in a bidirectional linked list data structure. During the execution of parameter setting, the target parameter node will also record and update the position number (i.e., target position information) of the currently set parameter value (i.e., target parameter value) in the optional value list to realize the traversal and Cartesian product combination of optional values.
[0045] Figure 3 A schematic diagram of candidate parameter value traversal of a target parameter item provided in the first embodiment of the present invention is provided, taking the building orientation, the exterior wall heat transfer coefficient and the outlet water temperature of the cooling station as target parameter items for illustration. Figure 3 As shown, when traversing at least two candidate parameter values for each target parameter item, the following operations can be used: 1. The parameter setting operation is performed sequentially from front to back, and the parameter value corresponding to the target position number is selected for each target parameter node in turn. After all nodes are assigned, a new idf file can be created; 2. The position number update operation is performed from back to front and in reverse. When the position number of a target parameter node exceeds the optional value length, it needs to be set to 0 to restart the traversal, and the position number of the previous node is updated. This operation will propagate forward in sequence until the first target parameter item completes the assignment traversal, and the entire parameter setting scheme is completed.
[0046] In this embodiment, optionally, determining a target configuration file corresponding to a target batch simulation task includes: determining a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to the target batch simulation task; determining at least two target parameter groups according to the target parameter items; wherein each target parameter group includes different target parameter items; determining at least two groups of preset parameter values for each target parameter group, and determining a target parameter adjustment method based on traversal results of at least two groups of preset parameter values for each target parameter group; determining a reference source file corresponding to the target building object, and determining a target configuration file corresponding to the target batch simulation task according to the reference source file and the target parameter adjustment method.
[0047] In this embodiment, when determining the target configuration file corresponding to the target batch simulation task, in addition to the Cartesian product mode, the parameter group mode can also be used. Specifically, after determining the target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to the target batch simulation task, first determine at least two target parameter groups according to the target parameter item, and each target parameter group includes different target parameter items. Then, artificially set several groups of typical parameter values as at least two groups of preset parameter values for each target parameter group, and then refer to the above-mentioned traversal method to perform a Cartesian product combination on each group of preset parameter values of each target parameter group to obtain a target parameter adjustment method, so as to subsequently determine the target configuration file corresponding to the target batch simulation task based on the reference source file and the target parameter adjustment method.
[0048] S120, adjusting parameters of the reference source files respectively according to at least two target parameter adjustment methods to obtain at least two target source files.
[0049] In this embodiment, after determining the target configuration file corresponding to the target batch simulation task, the target configuration file can be parsed by the configuration file parser to obtain a reference source file and a target parameter adjustment method. Then, the reference source file is loaded, and the reference source file is parameter-adjusted according to each target parameter adjustment method to obtain the target source file. Among them, the number of target source files is consistent with the number of target parameter adjustment methods.
[0050] S130, running at least two target source files based on the target building simulation software to generate target batch simulation data.
[0051] In this embodiment, after obtaining the target source file, each target source file can be run based on the target building simulation software, and the generated simulation results can be used as the target batch simulation data corresponding to the target source file. It should be noted that the construction and operation process of the target source file can be executed continuously (i.e., once the target source file is built, it starts to run), or it can be executed separately (i.e., after the target source file is built, select a suitable time period to run again). Because the simulation operation of EnergyPlus takes a long time, the time required for batch operation is even longer. In order to reduce the impact of abnormalities during the operation process, and also to support the scheduling of planned tasks in batches, the task of building the idf file and the task of simulating the operation can be split. Exemplarily, since the server usually has less operating pressure during the night period, after the target source file is built, it can be set to run the target source file during the night period, which helps to improve the efficiency of the simulation operation.
[0052] Figure 4 A schematic diagram of target batch simulation task processing provided by the first embodiment of the present invention. Figure 4As shown, a yaml file configuration method is used in advance to write a yaml configuration file for each target batch simulation task, and define the original idf file (i.e., reference source file) and related weather files and parameter configurations. The yaml configuration file is parsed by the configuration file parser to obtain the simulation task (including the reference source file and the target parameter adjustment method). The simulation task first performs a build operation to create multiple idf files (i.e., target source files) through parameter assignment operations; then a simulation run operation is performed to call the program interface provided by EnergyPlus for these idf files (i.e., target source files) respectively, and obtain the simulation results corresponding to each idf file (i.e., target source file) as the target batch simulation data, thereby completing the simulation work. In addition, the simulation executor program can also receive multiple yaml files as input parameters to meet the needs of batch automated simulation, such as Figure 5 As shown, multiple YAML files (corresponding to model A, model B and model C in the figure respectively) can be executed in parallel to improve the execution efficiency of the YAML files.
[0053] In this embodiment, optionally, at least two target source files are run based on the target building simulation software to generate target batch simulation data, including: in the process of running at least two target source files based on the target building simulation software, a log record is generated for each target source file; wherein the log record is used to describe the execution status of the target source file; if it is determined based on the log record that the execution of the target source file has been completed, then the target batch simulation data is determined based on the running data of the target source file.
[0054] Among them, the execution status may include completed execution, incomplete execution or interrupted execution. Specifically, if it is determined based on the log record that the target source file has been executed, all the running data of the target source file can be determined as the target batch simulation data; if it is determined based on the log record that the target source file has not been executed, it is necessary to continue waiting until the target source file is executed, and all the running data of the target source file is determined as the target batch simulation data; if it is determined based on the log record that the target source file is interrupted, it indicates that the task is abnormally interrupted, and the target source file needs to be executed again until the target source file is executed. Among them, when the task is abnormally interrupted and the target source file needs to be executed again, two methods can be used: executing the target source file from the beginning or continuing to execute the target source file from the interruption point.
[0055] In this embodiment, optionally, in the process of running at least two target source files based on the target building simulation software, after generating a log record for each target source file, it also includes: if it is determined based on the log record that the execution of the target source file is interrupted, determining the first part and the second part of the target source file according to the log record; wherein the first part is used to represent that it has been executed, and the second part is used to represent that it has not been executed; running the second part of the target source file until the execution of the target source file is completed, and determining the target batch simulation data based on the running data of the first part and the second part of the target source file.
[0056] Specifically, if the target source file is determined to be interrupted based on the log record, the interruption location of the target source file can be determined based on the log record, thereby dividing the target source file into a first part (executed) and a second part (unexecuted). When the target source file is run again, the completed task items (i.e., the first part) can be skipped based on the log record, and only the unfinished task items (i.e., the second part) need to be run until the target source file is executed. Then, the operation data of the first part and the second part of the target source file are determined as the target batch simulation data, thereby speeding up the operation efficiency of the target source file when an abnormal task interruption occurs, and avoiding repeated execution of the completed part.
[0057] The technical solution of the embodiment of the present invention first determines the target configuration file corresponding to the target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for the reference source file; then the reference source file is respectively adjusted according to the at least two target parameter adjustment methods to obtain at least two target source files; finally, at least two target source files are run based on the target building simulation software to generate target batch simulation data. This technical solution can quickly adjust the source file based on the configuration file so as to quickly and conveniently generate batch simulation data of multiple working conditions of the building, can ensure the effective coverage of the simulation data for various scenarios, improve the applicability, flexibility and generation efficiency of the simulation data, and strongly support the training and learning of large AI models.
[0058] Embodiment 2
[0059] Figure 6 This is a flow chart of a method for generating batch simulation data for multiple working conditions of a building provided in the second embodiment of the present invention. This embodiment is optimized based on the above embodiment.
[0060] like Figure 6 As shown, the method of this embodiment specifically includes the following steps:
[0061] S210: Determine a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to the target batch simulation task.
[0062] S220, determine the number of candidate parameter values for each target parameter item, and determine the number of parameter adjustment methods according to the product of the number of candidate parameter values of each target parameter item.
[0063] The preset number threshold may refer to a reference value of the number of parameter adjustment methods that is preset according to actual simulation requirements. Specifically, the number of candidate parameter values of each target parameter item is multiplied to obtain the number of parameter adjustment methods.
[0064] S230, determine whether the number of parameter adjustment methods is greater than a preset number threshold. If so, execute S240-S250, otherwise execute S260.
[0065] S240, determining at least two target parameter groups according to the target parameter items; wherein each target parameter group includes different target parameter items.
[0066] It should be noted that due to the large number of simulation schemes (i.e., parameter adjustment methods) generated by the parameter setting combination of the Cartesian product mode, in order to save time and computing costs, and at the same time make the simulation scheme more representative, an orthogonal test method can be used to construct the simulation scheme. This scheme introduces the parameter group node mode. A parameter group will contain a set of parameter items (which may come from multiple parameter objects) for setting adjustments. Each parameter item will correspond to a list of optional values. The length of these lists is the same and consistent with the sequence of the orthogonal test scheme. In each parameter setting operation, all parameters in the group are adjusted synchronously as a whole to achieve an orthogonal simulation scheme.
[0067] S250, determining at least two sets of preset parameter values for each target parameter group, and determining a target parameter adjustment method based on the traversal results of at least two sets of preset parameter values for each target parameter group.
[0068] Specifically, first, at least two target parameter groups are determined according to the target parameter items, and each target parameter group includes different target parameter items. Then, several groups of typical parameter values are artificially set as at least two groups of preset parameter values for each target parameter group, and then the Cartesian product combination of each group of preset parameter values of each target parameter group is performed with reference to the traversal method in the above-mentioned embodiment 1 to obtain the target parameter adjustment method. By combining the parameter group mode with the Cartesian product mode, the simulation data generation plan can be formulated more flexibly, and the generation efficiency of the simulation data can be effectively improved.
[0069] S260, determine the target parameter adjustment method based on the traversal results of at least two candidate parameter values for each target parameter item.
[0070] S270, determining a reference source file corresponding to the target building object, and determining a target configuration file corresponding to the target batch simulation task according to the reference source file and the target parameter adjustment method.
[0071] S280, adjusting parameters of the reference source file respectively according to at least two target parameter adjustment methods to obtain at least two target source files.
[0072] S290, running at least two target source files based on the target building simulation software to generate target batch simulation data.
[0073] Among them, the specific implementation method of S260-S290 can refer to the relevant description in the above-mentioned embodiment 1, and will not be repeated here.
[0074] The technical solution of the embodiment of the present invention is as follows: after determining the target building object, at least one target parameter item of the target building object and at least two candidate parameter values of the target parameter item according to the target batch simulation task, the number of candidate parameter values of each target parameter item is determined, and the number of parameter adjustment methods is determined according to the product of the number of candidate parameter values of each target parameter item; if the number of parameter adjustment methods is greater than the preset number threshold, at least two target parameter groups are determined according to the target parameter item; wherein each target parameter group includes different target parameter items; and at least two groups of preset parameter values of each target parameter group are determined, and the target parameter adjustment method is determined based on the traversal results of at least two groups of preset parameter values of each target parameter group; otherwise, the target parameter adjustment method is determined based on the traversal results of at least two candidate parameter values of each target parameter item; then the reference source file corresponding to the target building object is determined, and the target configuration file corresponding to the target batch simulation task is determined according to the reference source file and the target parameter adjustment method; and then the reference source file is respectively parameter adjusted according to the at least two target parameter adjustment methods to obtain at least two target source files; finally, the at least two target source files are run based on the target building simulation software to generate target batch simulation data. The present technical solution adds a parameter group mode to the parameter adjustment combination scheme, which can support the orthogonal test scheme. By combining the parameter group mode with the Cartesian product mode, the simulation data generation scheme can be formulated more flexibly, while effectively improving the simulation data generation efficiency.
[0075] Embodiment 3
[0076] Figure 7 This is a schematic diagram of the structure of a device for generating batch simulation data of multiple working conditions of a building provided in the third embodiment of the present invention. The device can execute the method for generating batch simulation data of multiple working conditions of a building provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 7 As shown, the device comprises:
[0077] The configuration file determination module 310 is used to determine a target configuration file corresponding to the target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for the reference source file;
[0078] A source file parameter adjustment module 320, configured to adjust the parameters of the reference source file according to the at least two target parameter adjustment methods to obtain at least two target source files;
[0079] The batch simulation data generating module 330 is used to run the at least two target source files based on the target building simulation software to generate target batch simulation data.
[0080] Optionally, the configuration file determination module 310 includes:
[0081] A target object and parameter determination unit, configured to determine a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to a target batch simulation task;
[0082] A first parameter adjustment mode determination unit, configured to determine a target parameter adjustment mode based on a traversal result of at least two candidate parameter values for each of the target parameter items;
[0083] A configuration file determination unit is used to determine a reference source file corresponding to the target building object, and determine a target configuration file corresponding to the target batch simulation task according to the reference source file and the target parameter adjustment method.
[0084] Optionally, the first parameter adjustment mode determining unit is specifically configured to:
[0085] Determine a target parameter node corresponding to each of the target parameter items; wherein the target parameter node includes a parameter value list, and the parameter value list is used to store at least two candidate parameter values of the target parameter item;
[0086] For each of the target parameter nodes, determine the candidate position information of each of the candidate parameter values in the parameter value list, and traverse the candidate position information to obtain the target position information;
[0087] The target parameter nodes are assigned values according to the target parameter values corresponding to the target position information, and the target parameter adjustment method is determined based on the target parameter values of each target parameter node.
[0088] Optionally, the configuration file determination module 310 further includes:
[0089] a parameter adjustment method quantity determination unit, configured to determine the quantity of candidate parameter values for each target parameter item after determining the target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to the target batch simulation task, and determine the quantity of parameter adjustment methods according to the product of the quantity of candidate parameter values of each target parameter item;
[0090] A target parameter group determination unit, configured to determine at least two target parameter groups according to the target parameter items if the number of the parameter adjustment modes is greater than a preset number threshold; wherein each of the target parameter groups includes different target parameter items;
[0091] The second parameter adjustment method determination unit is used to determine at least two groups of preset parameter values for each of the target parameter groups, and determine the target parameter adjustment method based on the traversal results of the at least two groups of preset parameter values for each of the target parameter groups.
[0092] Optionally, the configuration file determination module 310 is further configured to:
[0093] Determine a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to a target batch simulation task;
[0094] Determine at least two target parameter groups according to the target parameter items; wherein each of the target parameter groups includes different target parameter items;
[0095] Determine at least two sets of preset parameter values for each of the target parameter groups, and determine a target parameter adjustment method based on the traversal results of the at least two sets of preset parameter values for each of the target parameter groups;
[0096] Determine a reference source file corresponding to the target building object, and determine a target configuration file corresponding to the target batch simulation task based on the reference source file and the target parameter adjustment method.
[0097] Optionally, the batch simulation data generating module 330 is used to:
[0098] In the process of running the at least two target source files based on the target building simulation software, generating a log record for each of the target source files; wherein the log record is used to describe the execution status of the target source file;
[0099] If it is determined based on the log record that the target source file has been executed, target batch simulation data is determined according to the running data of the target source file.
[0100] Optionally, the batch simulation data generating module 330 is further used to:
[0101] In the process of running the at least two target source files based on the target building simulation software, after generating a log record for each of the target source files, if it is determined based on the log record that the execution of the target source file is interrupted, determining a first part and a second part of the target source file according to the log record; wherein the first part is used to indicate that it has been executed, and the second part is used to indicate that it has not been executed;
[0102] The second part of the target source file is run until the target source file is completely executed, and target batch simulation data is determined according to the running data of the first part and the second part of the target source file.
[0103] Optionally, the target parameter item includes a single parameter object or multiple parameter objects, and the multiple parameter objects are used to describe the same target parameter item.
[0104] A device for generating batch simulation data of multiple working conditions of a building provided in an embodiment of the present invention can execute a method for generating batch simulation data of multiple working conditions of a building provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0105] Embodiment 4
[0106] Figure 8 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment 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 processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0107] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0108] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0109] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for generating batch simulation data for multiple working conditions of a building.
[0110] In some embodiments, the method for generating batch simulation data of multiple working conditions of a building may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for generating batch simulation data of multiple working conditions of a building described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for generating batch simulation data of multiple working conditions of a building by any other appropriate means (e.g., by means of firmware).
[0111] Various implementations 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0112] Computer programs for implementing 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, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0113] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0114] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0115] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0116] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0118] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating batch simulation data of multiple working conditions of a building, characterized in that: The method comprises: Determine a target configuration file corresponding to the target batch simulation task; wherein the target configuration file is used to describe at least two target parameter adjustment methods for the reference source file; According to the at least two target parameter adjustment methods, parameters of the reference source files are adjusted respectively to obtain at least two target source files; The at least two target source files are run based on the target building simulation software to generate target batch simulation data.
2. The method according to claim 1, characterized in that Determine the target configuration file corresponding to the target batch simulation task, including: Determine a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to a target batch simulation task; Determining a target parameter adjustment method based on a traversal result of at least two candidate parameter values for each of the target parameter items; Determine a reference source file corresponding to the target building object, and determine a target configuration file corresponding to the target batch simulation task based on the reference source file and the target parameter adjustment method.
3. The method according to claim 2, characterized in that Determining a target parameter adjustment method based on a traversal result of at least two candidate parameter values for each of the target parameter items includes: Determine a target parameter node corresponding to each of the target parameter items; wherein the target parameter node includes a parameter value list, and the parameter value list is used to store at least two candidate parameter values of the target parameter item; For each of the target parameter nodes, determine the candidate position information of each of the candidate parameter values in the parameter value list, and traverse the candidate position information to obtain the target position information; The target parameter nodes are assigned values according to the target parameter values corresponding to the target position information, and the target parameter adjustment method is determined based on the target parameter values of each target parameter node.
4. The method according to claim 2, characterized in that: After determining a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to the target batch simulation task, the method further includes: Determine the number of candidate parameter values for each of the target parameter items, and determine the number of parameter adjustment methods according to the product of the number of candidate parameter values for each target parameter item; If the number of the parameter adjustment methods is greater than a preset number threshold, at least two target parameter groups are determined according to the target parameter items; wherein each of the target parameter groups includes different target parameter items; Determine at least two sets of preset parameter values for each of the target parameter groups, and determine the target parameter adjustment method based on the traversal results of the at least two sets of preset parameter values for each of the target parameter groups.
5. The method according to claim 1, characterized in that Determine the target configuration file corresponding to the target batch simulation task, including: Determine a target building object, at least one target parameter item of the target building object, and at least two candidate parameter values of the target parameter item according to a target batch simulation task; Determine at least two target parameter groups according to the target parameter items; wherein each of the target parameter groups includes different target parameter items; Determine at least two sets of preset parameter values for each of the target parameter groups, and determine a target parameter adjustment method based on the traversal results of the at least two sets of preset parameter values for each of the target parameter groups; Determine a reference source file corresponding to the target building object, and determine a target configuration file corresponding to the target batch simulation task based on the reference source file and the target parameter adjustment method.
6. The method according to claim 1, characterized in that Running the at least two target source files based on the target building simulation software to generate target batch simulation data includes: In the process of running the at least two target source files based on the target building simulation software, generating a log record for each of the target source files; wherein the log record is used to describe the execution status of the target source file; If it is determined based on the log record that the target source file has been executed, target batch simulation data is determined according to the running data of the target source file.
7. The method according to claim 6, characterized in that In the process of running the at least two target source files based on the target building simulation software, after generating a log record of each of the target source files, the method further includes: If it is determined based on the log record that the execution of the target source file is interrupted, determine the first part and the second part of the target source file according to the log record; wherein the first part is used to indicate that it has been executed, and the second part is used to indicate that it has not been executed; The second part of the target source file is run until the target source file is completely executed, and target batch simulation data is determined according to the running data of the first part and the second part of the target source file.
8. The method according to any one of claims 2 to 5, characterized in that: The target parameter item includes a single parameter object or multiple parameter objects, and the multiple parameter objects are used to describe the same target parameter item.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating building multi-working condition batch simulation data according to any one of claims 1-8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating building multi-working condition batch simulation data according to any one of claims 1 to 8 when executed.
Citation Information
Patent Citations
Virtual machine recovery and resource adjustment method
CN112395045A
Business data interaction processing method, device and equipment, and storage medium
CN112395177A
Parameter updating method and device compatible with cloud native application
CN113687854A
Batch modeling method suitable for EnergyPlus and related device
CN115017565A
Automatic parameter adjusting method based on Bayesian optimization and K-center sampling
CN115470910A