CN110188491B - Processing method and device for improving calculation efficiency in simulation calculation process - Google Patents

Processing method and device for improving calculation efficiency in simulation calculation process Download PDF

Info

Publication number
CN110188491B
CN110188491B CN201910478517.4A CN201910478517A CN110188491B CN 110188491 B CN110188491 B CN 110188491B CN 201910478517 A CN201910478517 A CN 201910478517A CN 110188491 B CN110188491 B CN 110188491B
Authority
CN
China
Prior art keywords
simulation calculation
sub
calculation process
parameters
simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910478517.4A
Other languages
Chinese (zh)
Other versions
CN110188491A (en
Inventor
李凯彬
宋海川
刘慧�
付前文
周达
许静惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910478517.4A priority Critical patent/CN110188491B/en
Publication of CN110188491A publication Critical patent/CN110188491A/en
Application granted granted Critical
Publication of CN110188491B publication Critical patent/CN110188491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a processing method and a processing device for improving the calculation efficiency in the simulation calculation process; wherein, the method comprises the following steps: dividing the simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters; after receiving an instruction for modifying parameters triggered by a user, suspending the current simulation calculation operation on the plurality of sub-simulation calculation processes, and storing the results of the completed simulation calculation in the plurality of sub-simulation calculation processes; and modifying the parameters in the simulation calculation process according to the instruction, and continuously executing the simulation calculation operation based on the modified parameters. The invention solves the problem that the prior simulation calculation time is wasted if parameters in the simulation calculation process are modified in the related technology.

Description

Processing method and device for improving calculation efficiency in simulation calculation process
Technical Field
The invention relates to the technical field of analog simulation, in particular to a processing method and a processing device for improving the calculation efficiency in a simulation calculation process.
Background
With the wide application of simulation calculation in various industries, the simulation calculation process is commonly available in many industrial control software or platforms. However, in the current simulation calculation process, the industrial control parameters are usually set before the simulation calculation, and once the calculation process is performed, the set parameters cannot be modified in the original project, so that only one project is rebuilt and recalculated once. However, in the actual simulation process, when parameters are set in the early stage, the parameters are often set incorrectly due to carelessness of a worker, or in the later stage, partial parameters need to be adjusted due to plan adjustment, so that the parameters need to be adjusted when a part of the simulation calculation process is completed for a project. Therefore, in the process of simulation calculation, if the set parameters need to be adjusted, not only is the early-stage simulation calculation time wasted, but also the reconstruction project brings the trouble of repeated operation to engineering personnel.
In view of the above problems in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a processing method and a processing device for improving the calculation efficiency in a simulation calculation process, which are used for at least solving the problem that the prior simulation calculation time is wasted if parameters in the simulation calculation process are modified in the related art.
According to an embodiment of the present invention, a processing method for improving computational efficiency in a simulation computation process is provided, including: dividing a terminal simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters; after receiving an instruction for modifying parameters triggered by a user, suspending the current simulation calculation operation on a plurality of sub-simulation calculation processes of the terminal, and storing the results of the simulation calculation completed in the plurality of sub-simulation calculation processes of the terminal; and modifying parameters in the terminal simulation calculation process according to the terminal instruction, and continuously executing the simulation calculation operation based on the modified parameters.
Optionally, judging whether the modified parameters are in the sub-simulation calculation process of the completed simulation calculation; determining a sub-simulation calculation process for continuing to execute the simulation calculation operation according to the judgment result; and continuing to execute the simulation calculation operation according to the determined sub-simulation calculation process.
Optionally, the determining, by the terminal according to the determination result, a sub-simulation calculation process of continuing to execute the simulation calculation operation includes: under the condition that the modified parameters are not in the sub-simulation calculation process of finished simulation calculation, determining the sub-simulation calculation process of continuously executing the simulation calculation operation as the sub-simulation calculation process in which the sub-simulation calculation process is suspended; and under the condition that the modified parameters are in the sub-simulation calculation process of which the simulation calculation is finished, determining the sub-simulation calculation process of continuously executing the simulation calculation operation as the sub-simulation calculation process in which the modified parameters of the terminal are positioned.
Optionally, the terminal continues to execute the simulation calculation operation according to the determined sub-simulation calculation process, including: continuing to execute the simulation calculation operation from the sub-simulation calculation process in the pause time; or, the simulation calculation operation is continuously executed from the sub-simulation calculation process where the modified parameters of the terminal are located.
Optionally, acquiring a simulation calculation result of a previous sub-simulation calculation process of the current sub-simulation calculation process; and carrying out simulation calculation on the current sub-simulation calculation process of the terminal according to the simulation calculation result of the terminal and the corresponding parameters in the current sub-simulation calculation process of the terminal.
According to another embodiment of the present invention, there is provided a processing apparatus for improving computational efficiency in a simulation computation process, including: the terminal simulation calculation process comprises a dividing module, a calculating module and a calculating module, wherein the dividing module is used for dividing the terminal simulation calculation process into a plurality of sub-simulation calculation processes, and each sub-simulation calculation process has corresponding parameters; the processing module is used for suspending the current simulation calculation operation on a plurality of sub-simulation calculation processes of the terminal after receiving an instruction which is triggered by a user and used for modifying parameters, and storing the results of the simulation calculation which is completed in the plurality of sub-simulation calculation processes of the terminal; and the execution module is used for modifying the parameters in the terminal simulation calculation process according to the terminal instruction and continuously executing the simulation calculation operation based on the modified parameters.
According to a further embodiment of the present invention, there is also provided a storage medium in which a computer program is stored, wherein the terminal computer program is arranged to perform the steps in any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic apparatus, including a memory and a processor, the terminal memory having a computer program stored therein, the terminal processor being configured to execute the terminal computer program to perform the steps in any of the above method embodiments.
By the invention, the simulation calculation process is divided into a plurality of sub-simulation calculation processes, after an instruction which is triggered by a user and used for modifying parameters is received, the current simulation calculation operation on the plurality of sub-simulation calculation processes is suspended, the result of the simulation calculation which is completed in the plurality of sub-simulation calculation processes is stored, and after the parameters in the simulation calculation process are modified according to the instruction, the simulation calculation operation is continuously executed based on the modified parameters, namely, the parameters can be modified aiming at the instruction which is triggered by the user and used for modifying the parameters in the simulation calculation process, and the sub-simulation calculation process where the parameters are re-modified after the parameters are modified is started to continuously execute the simulation calculation operation, thereby solving the problem of the waste of the previous simulation calculation time caused by modifying the parameters in the simulation calculation process in the related technology, the effect of improving the simulation calculation efficiency is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a terminal of a processing method for improving computation efficiency in a simulation computation process according to an embodiment of the present invention;
FIG. 2 is a flow chart of a processing method for improving computational efficiency during a simulation computation process according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of continuing to execute a simulation calculation operation based on modified parameters in a processing method of a simulation calculation process according to an embodiment of the present invention;
FIG. 4 is a block diagram of a processing apparatus for improving computational efficiency during a simulation computation process according to an embodiment of the present invention;
fig. 5 is a block diagram of an alternative configuration of a processing device for improving computational efficiency during a simulation computation process according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a terminal, a computer terminal, or a similar computing device. Taking the example of running on a terminal, fig. 1 is a hardware structure block diagram of the terminal of the processing method of the simulation computation process according to the embodiment of the present invention. As shown in fig. 1, the terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the terminal. For example, the terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the processing method of simulating a computing process in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a processing method for improving the computational efficiency in the simulation computation process, which is run on the terminal described above, is provided, and fig. 2 is a flowchart of the processing method for improving the computational efficiency in the simulation computation process according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S102, dividing the terminal simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters.
And industrial control software or a platform for running simulation calculation is also installed in the terminal, so that the terminal can execute the simulation calculation process. Before simulation calculation, the industrial control software or platform of the terminal needs to set and store parameters according to values input by a user, and then divides the whole simulation calculation process into a plurality of sub-simulation calculation processes according to different stages of the whole simulation calculation process, namely, each sub-simulation calculation process can independently calculate intermediate data and can participate in the calculation of the next sub-simulation calculation process until the calculation enters the last sub-simulation calculation process, so that the final calculated result is the result of the whole simulation calculation. And the terminal also needs to identify the parameters participating in each different sub-simulation calculation process and establish the corresponding relation between each sub-simulation calculation process and the parameters participating in the sub-simulation calculation process, so that the terminal can accurately position the sub-simulation calculation process which has completed the simulation calculation and the parameters participating in the simulation calculation in the whole simulation calculation process.
And step S104, after receiving an instruction for modifying parameters triggered by a user, suspending the current simulation calculation operation on a plurality of sub-simulation calculation processes of the terminal, and storing the results of the simulation calculation completed in the plurality of sub-simulation calculation processes of the terminal.
After the step S102 is executed, the industrial control software or the platform on the terminal may start the simulation calculation, and in the simulation calculation process, if the terminal receives an instruction for modifying the parameter, which is triggered by the user, the current simulation calculation operation on the plurality of sub-simulation calculation processes needs to be suspended, and the result of the simulation calculation that has been completed in the plurality of sub-simulation calculation processes is stored. Specifically, in the process of the simulation calculation, if the user needs to edit the parameters, the user can send an instruction for modifying the parameters by touching a virtual key on the display screen or a key on the terminal, or by gesture sensing or voice, so that the terminal suspends the current simulation calculation operation and saves the result of the sub-simulation calculation process in which the simulation calculation has been completed.
And step S106, modifying parameters in the terminal simulation calculation process according to the terminal instruction, and continuously executing the simulation calculation operation based on the modified parameters.
And when the terminal suspends the simulation calculation, the terminal displays a parameter editing interface, so that a user can modify the parameters needing to be adjusted conveniently. After the parameters are modified and stored, the user can send an instruction for continuing the simulation calculation through gesture induction or voice by touching a virtual key on the display screen or a key on the terminal, and at the moment, the terminal can continue the simulation calculation based on the modified parameters. Specifically, the terminal needs to judge whether the modified parameter is a parameter in the sub-simulation calculation process in which the simulation calculation is completed, and if so, the modified parameter participates in the calculation of the sub-simulation calculation process in which the simulation calculation is completed, the currently stored result of the simulation calculation is affected, and the simulation calculation needs to be restarted from the sub-simulation calculation process in which the modified parameter is located; if not, the modified parameter does not participate in the calculation of the sub-simulation calculation process of which the simulation calculation is completed, the currently saved result of the simulation calculation is not influenced, and the calculation can be started from the sub-simulation calculation process in which the simulation calculation is paused.
In this embodiment, the parameter modification instruction triggered by the user may be one time or multiple times, and this embodiment is not limited. It can be considered by those skilled in the art that steps S104 and S106 are executed each time the terminal receives a parameter modification instruction triggered by a user. Since the modification parameters involved are different, the sub-simulation calculation process for restarting the simulation calculation is also different, but the principles are the same, and are not described herein in detail.
Through the above steps S102 to S106, the simulation calculation process is divided into a plurality of sub-simulation calculation processes, after receiving an instruction for modifying parameters triggered by a user, the current simulation calculation operation on the plurality of sub-simulation calculation processes is suspended, and the result of the simulation calculation completed in the plurality of sub-simulation calculation processes is stored, after modifying the parameters in the simulation calculation process according to the instruction, the simulation calculation operation is continuously executed based on the modified parameters, that is, the parameters can be modified in the simulation calculation process according to the instruction for modifying parameters triggered by the user, and the sub-simulation calculation process where the parameters are modified again after the parameters are modified is started to continuously execute the simulation calculation operation. Therefore, the problem that the set parameters cannot be modified in the simulation calculation process can be solved, and the effects of saving the simulation calculation time and reducing the workload of personnel for reconstructing projects are achieved.
Further, referring to fig. 3, for the simulation calculation operation continued to be executed based on the modified parameters in step S106 in this embodiment, the following method may be implemented:
step S302, judging whether the modified parameters are in the sub-simulation calculation process of the completed simulation calculation.
After the user completes the parameter modification, the terminal needs to judge whether the modified parameter is in the sub-simulation calculation process of the completed simulation calculation. The reason is that in the multiple sub-simulation calculation processes, the terminal obtains the simulation calculation result of the last sub-simulation calculation process of the current sub-simulation calculation process, and performs simulation calculation on the current sub-simulation calculation process according to the simulation calculation result and the corresponding parameters in the current sub-simulation calculation process, and so on, and the whole simulation calculation process is not finished until the whole simulation calculation process reaches the last sub-simulation calculation process. In any sub-simulation calculation process in the process, if a user modifies any parameter in the sub-simulation calculation process in which the simulation calculation is completed, the simulation calculation result will be deviated in the subsequent simulation calculation process. For example, the whole simulation calculation process is divided into a first sub-simulation calculation process, a second sub-simulation calculation process, a third sub-simulation calculation process and a fourth sub-simulation calculation process, wherein the parameters of the first sub-simulation calculation process participating in the calculation include a parameters, the parameters of the second sub-simulation calculation process participating in the calculation include b parameters, the parameters of the third sub-simulation calculation process participating in the calculation include c parameters, and the parameters of the fourth sub-simulation calculation process participating in the calculation include d parameters. The first sub-simulation calculation process has no simulation calculation result of the previous sub-simulation calculation process, so the parameters of the first sub-simulation calculation process are used as the calculation basis, and the last sub-simulation calculation process has no next sub-simulation calculation process, so the last sub-simulation calculation process is the result of the whole simulation calculation.
Those skilled in the art can consider that the number of sub-simulation calculation processes and the number of corresponding parameters in each sub-simulation calculation process are not limited in this embodiment, and may be set according to actual situations.
And step S304, determining to continue to execute the sub-simulation calculation process of the simulation calculation operation according to the judgment result.
Specifically, the sub-simulation calculation process involved in step S304 in the present embodiment, which determines to continue to execute the simulation calculation operation according to the determination result, may be implemented as follows:
step S304-11, under the condition that the modified parameters are not in the sub-simulation calculation process of the completed simulation calculation, determining that the sub-simulation calculation process of continuing to execute the simulation calculation operation is the sub-simulation calculation process in which the sub-simulation calculation process is suspended;
and S304-12, under the condition that the modified parameters are in the sub-simulation calculation process of the completed simulation calculation, determining the sub-simulation calculation process of continuously executing the simulation calculation operation as the sub-simulation calculation process of the modified parameters of the terminal.
And the terminal determines to continue the sub-simulation calculation process of the simulation calculation operation according to the judgment result of judging whether the modified parameters are in the sub-simulation calculation process of finishing the simulation calculation. Specifically, under the condition that the modified parameters are not in the sub-simulation calculation process of which the simulation calculation is finished, determining that the sub-simulation calculation process of continuing to execute the simulation calculation operation is the sub-simulation calculation process in which the sub-simulation calculation process is suspended; and under the condition that the modified parameters are in the sub-simulation calculation process of which the simulation calculation is finished, determining the sub-simulation calculation process of continuously executing the simulation calculation operation as the sub-simulation calculation process in which the modified parameters of the terminal are positioned. Continuing to take the first, second, third and fourth 4 sub-simulation calculation processes as an example, when the terminal starts simulation calculation, directly calculating according to the parameter a to obtain a result a ' of the first sub-simulation calculation process, calculating according to the parameter a ' and the parameter b ' in the second sub-simulation calculation process to obtain a result b ' and calculating according to the parameter b ' and the parameter c ' in the third sub-simulation calculation process to obtain a result c ', at this time, if the user modifies the value of the parameter b, after the user modifies the parameter b, the terminal restarts calculation from the second sub-simulation calculation process in which the parameter b participates in calculation at the beginning, instead of starting calculation from the third sub-simulation calculation process which is suspended; if the user modifies the value of the d parameter, the d parameter does not participate in the calculation of the first, second and third sub-simulation calculation processes which have completed the simulation calculation, so that the user can start the calculation from the suspended third sub-simulation calculation process after modifying the d parameter, and calculate the result d 'according to the c' and the d parameter.
And step S306, continuing to execute the simulation calculation operation according to the determined sub-simulation calculation process.
Specifically, for the simulation calculation operation continued according to the determined sub-simulation calculation process involved in step S306 in this embodiment, the following may be implemented:
step S306-11, continuing to execute the simulation calculation operation from the sub-simulation calculation process in the pause; or the like, or, alternatively,
and step S306-12, continuing to execute the simulation calculation operation from the sub-simulation calculation process in which the parameters modified by the terminal are positioned.
If the determined sub-simulation calculation process is the sub-simulation calculation process in the pause state, the terminal continues to execute the simulation calculation operation from the sub-simulation calculation process in the pause state; if the determined sub-simulation calculation process is the sub-simulation calculation process in which the modified parameter is located, the terminal continues to execute the simulation calculation operation from the sub-simulation calculation process in which the modified parameter is located again until the last sub-simulation calculation process is executed, and the whole simulation calculation process is completed.
By the scheme, after the user finishes parameter modification, the sub-simulation calculation process of the terminal restarting calculation is determined by judging whether the sub-simulation calculation process of the modified parameter is finished simulation calculation or not finished simulation calculation, so that the accuracy of subsequent simulation calculation is ensured, and the time of the whole simulation calculation is saved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the terminal according to the embodiments of the present invention.
The present embodiment further provides a processing device for improving the calculation efficiency in the simulation calculation process, where the processing device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a processing apparatus for improving computational efficiency in a simulation computation process according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes: the dividing module 10 is configured to divide the simulation calculation process into a plurality of sub-simulation calculation processes, where each sub-simulation calculation process has a corresponding parameter; the processing module 20 is coupled and linked with the dividing module 10, and is used for suspending the current simulation calculation operation on the plurality of sub-simulation calculation processes after receiving an instruction for modifying the parameters, which is triggered by a user, and storing the results of the completed simulation calculation in the plurality of sub-simulation calculation processes; and the execution module 30 is coupled and linked with the processing module 20 and is used for modifying the parameters in the simulation calculation process according to the instructions and continuing to execute the simulation calculation operation based on the modified parameters.
Fig. 5 is a block diagram of an optional structure in the processing apparatus for improving the computational efficiency in the simulation computation process according to the embodiment of the present invention, and as shown in fig. 5, the execution module 30 in fig. 4 may further include: a judging unit 301, configured to judge whether the modified parameter is in a sub-simulation calculation process in which simulation calculation is completed; a determining unit 302, configured to determine, according to the determination result, to continue to execute a sub-simulation calculation process of the simulation calculation operation; and the execution unit 303 is configured to continue to execute the simulation calculation operation according to the determined sub-simulation calculation process.
Optionally, the determining unit includes: the first determining subunit is used for determining that the sub-simulation calculation process for continuing to execute the simulation calculation operation is the sub-simulation calculation process in which the sub-simulation calculation process is suspended under the condition that the modified parameters are not in the sub-simulation calculation process in which the simulation calculation is finished; and the second determining subunit is used for determining that the sub-simulation calculation process for continuously executing the simulation calculation operation is the sub-simulation calculation process in which the modified parameters of the terminal are located under the condition that the modified parameters are in the sub-simulation calculation process in which the simulation calculation is completed.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, dividing the terminal simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters;
s2, after receiving an instruction for modifying parameters triggered by a user, suspending the current simulation calculation operation on a plurality of sub-simulation calculation processes of the terminal, and storing the results of the simulation calculation completed in the plurality of sub-simulation calculation processes of the terminal;
and S3, modifying the parameters in the terminal simulation calculation process according to the terminal instruction, and continuing to execute the simulation calculation operation based on the modified parameters.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, dividing the terminal simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters;
s2, after receiving an instruction for modifying parameters triggered by a user, suspending the current simulation calculation operation on a plurality of sub-simulation calculation processes of the terminal, and storing the results of the simulation calculation completed in the plurality of sub-simulation calculation processes of the terminal;
and S3, modifying the parameters in the terminal simulation calculation process according to the terminal instruction, and continuing to execute the simulation calculation operation based on the modified parameters.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above terminal is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and it is possible for those skilled in the art to make various modifications and variations. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A processing method for simulating a computational process, comprising:
dividing the simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters;
after receiving an instruction for modifying parameters triggered by a user, suspending the current simulation calculation operation on the plurality of sub-simulation calculation processes, and storing the results of the completed simulation calculation in the plurality of sub-simulation calculation processes;
modifying the parameters in the simulation calculation process according to the instruction, and continuously executing the simulation calculation operation based on the modified parameters; which comprises the following steps:
judging whether the modified parameters are in the sub-simulation calculation process of finished simulation calculation;
determining a sub-simulation calculation process for continuing to execute the simulation calculation operation according to the judgment result; which comprises the following steps:
under the condition that the modified parameters are not in the sub-simulation calculation process of finished simulation calculation, determining the sub-simulation calculation process of continuously executing the simulation calculation operation as the sub-simulation calculation process in which the sub-simulation calculation process is suspended; under the condition that the modified parameters are in the sub-simulation calculation process of which the simulation calculation is finished, determining the sub-simulation calculation process of continuously executing the simulation calculation operation as the sub-simulation calculation process of the modified parameters;
continuing to execute the simulation calculation operation according to the determined sub-simulation calculation process;
the terminal displays a parameter editing interface while the simulation calculation is suspended, so that a user can modify parameters to be adjusted, after the parameters are modified and stored, the user sends an instruction for continuing the simulation calculation by touching a virtual key on a display screen or keys on the terminal, gesture induction or voice, and at the moment, the terminal can continue the simulation calculation based on the modified parameters.
2. The method of claim 1, wherein continuing to perform the simulation calculation operations according to the determined sub-simulation calculation procedures comprises:
continuing to execute the simulation calculation operation from the sub-simulation calculation process in the pause time; or, the simulation calculation operation is continuously executed from the sub-simulation calculation process where the modified parameters are located.
3. The method of any of claims 1-2, wherein the simulated computational operations on the plurality of sub-simulated computational processes comprise:
acquiring a simulation calculation result of a previous sub-simulation calculation process of the current sub-simulation calculation process;
and carrying out simulation calculation on the current sub-simulation calculation process according to the simulation calculation result and the corresponding parameters in the current sub-simulation calculation process.
4. A processing apparatus for simulating a computational process, comprising:
the dividing module is used for dividing the simulation calculation process into a plurality of sub-simulation calculation processes, wherein each sub-simulation calculation process has corresponding parameters;
the processing module is used for suspending the current simulation calculation operation on the plurality of sub-simulation calculation processes after receiving an instruction for modifying parameters, which is triggered by a user, and storing the results of the simulation calculation which is completed in the plurality of sub-simulation calculation processes;
the execution module is used for modifying the parameters in the simulation calculation process according to the instruction and continuously executing the simulation calculation operation based on the modified parameters;
the execution module comprises: the judging unit is used for judging whether the modified parameters are in the sub-simulation calculation process of the completed simulation calculation; the determining unit is used for determining a sub-simulation calculation process for continuously executing the simulation calculation operation according to the judgment result; the execution unit is used for continuously executing the simulation calculation operation according to the determined sub-simulation calculation process;
the determination unit includes: the first determining subunit is used for determining that the sub-simulation calculation process for continuing to execute the simulation calculation operation is the sub-simulation calculation process in which the sub-simulation calculation process is suspended under the condition that the modified parameters are not in the sub-simulation calculation process in which the simulation calculation is finished;
the second determining subunit is used for determining the sub-simulation calculation process for continuously executing the simulation calculation operation as the sub-simulation calculation process in which the modified parameter is positioned under the condition that the modified parameter is in the sub-simulation calculation process in which the simulation calculation is finished;
the terminal displays a parameter editing interface while the simulation calculation is suspended, so that a user can modify parameters to be adjusted, after the parameters are modified and stored, the user sends an instruction for continuing the simulation calculation by touching a virtual key on a display screen or keys on the terminal, gesture induction or voice, and at the moment, the terminal can continue the simulation calculation based on the modified parameters.
5. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 3 when executed.
6. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 3.
CN201910478517.4A 2019-06-03 2019-06-03 Processing method and device for improving calculation efficiency in simulation calculation process Active CN110188491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910478517.4A CN110188491B (en) 2019-06-03 2019-06-03 Processing method and device for improving calculation efficiency in simulation calculation process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910478517.4A CN110188491B (en) 2019-06-03 2019-06-03 Processing method and device for improving calculation efficiency in simulation calculation process

Publications (2)

Publication Number Publication Date
CN110188491A CN110188491A (en) 2019-08-30
CN110188491B true CN110188491B (en) 2020-12-18

Family

ID=67720074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910478517.4A Active CN110188491B (en) 2019-06-03 2019-06-03 Processing method and device for improving calculation efficiency in simulation calculation process

Country Status (1)

Country Link
CN (1) CN110188491B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005658A (en) * 2015-07-15 2015-10-28 国家电网公司 Logic simulation method of comprehensive automation system equipment of transformer substation
CN107918585A (en) * 2016-10-07 2018-04-17 福特全球技术公司 Method and apparatus for test software programs

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445964B1 (en) * 1997-08-04 2002-09-03 Harris Corporation Virtual reality simulation-based training of telekinegenesis system for training sequential kinematic behavior of automated kinematic machine
US20110184687A1 (en) * 2010-01-25 2011-07-28 Advantest Corporation Test apparatus and test method
CN103020337B (en) * 2012-11-28 2015-04-22 河南科技大学东海硅产业节能技术研究院 Method for controlling ore melting of electric heating furnace by utilizing parametric modeling
CN106227931A (en) * 2016-07-19 2016-12-14 中国人民解放军63920部队 The control method of a kind of Spacecraft malfunction emulation and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005658A (en) * 2015-07-15 2015-10-28 国家电网公司 Logic simulation method of comprehensive automation system equipment of transformer substation
CN107918585A (en) * 2016-10-07 2018-04-17 福特全球技术公司 Method and apparatus for test software programs

Also Published As

Publication number Publication date
CN110188491A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
US10935937B2 (en) Work assistance device, work assistance method, and work assistance program
CN108563579B (en) White box testing method, device and system and storage medium
CN108271150B (en) Method and system for supporting simultaneous flashing or data clearing of multiple mobile phones
CN107015902B (en) Test method and test equipment
CN107103004A (en) Data processing method, apparatus and system in webpage
CN110633959A (en) Method, device, equipment and medium for creating approval task based on graph structure
CN109191078A (en) A kind of traffic flow modeling method, device and equipment
CN110188491B (en) Processing method and device for improving calculation efficiency in simulation calculation process
CN112388625B (en) Task issuing method and device and task executing method and device
CN107025126B (en) Resource scheduling method, NFVO and system
CN116521573A (en) Automatic test method, device, equipment and storage medium
CN106201612B (en) A kind of information processing method and electronic equipment
CN109284828A (en) A kind of hyper parameter tuning method, device and equipment
JP2861962B2 (en) Computer program simulation apparatus and method
CN109510682B (en) Method, device, terminal and storage medium for synchronizing BMC (baseboard management controller) clocks of pooling server system
CN113434421A (en) Virtual equipment testing method and device
CN111092738B (en) Automatic restarting method, equipment and storage medium for edge intelligent gateway
WO2017028628A1 (en) Terminal internal device power consumption data acquisition method and device
CN108809763B (en) Network performance parameter acquisition method, terminal device and storage medium
WO2021189857A1 (en) Task state detection method and apparatus, and computer device and storage medium
CN114721712B (en) Task execution method and device, electronic equipment and storage medium
CN109271188A (en) A kind of CPLD upgrade method and relevant apparatus
CN112231819B (en) Method and device for determining coplanarity of line segments, storage medium and electronic device
CN109189476B (en) Control flow execution method, device, equipment and medium of FPGA
CN110716747B (en) Program operation efficiency optimization method based on function parameter statistics and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant