Test method and device of scheduling strategy, electronic equipment and storage medium

By using virtual vehicle scheduling simulation, the problems of numerous on-site verification conditions and high safety risks were solved, and efficient and safe scheduling strategy testing was achieved.

CN116225940BActive Publication Date: 2025-12-16CHONGQING SAIDIQIZHI ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310207683.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2025-12-16
Estimated Expiration
2043-03-06

AI Technical Summary

Technical Problem

In the existing technology, the on-site verification of rail locomotive scheduling procedures requires meeting multiple conditions, resulting in low verification efficiency and high safety risks.

Method used

By performing virtual vehicle scheduling simulation based on a preset scheduling strategy, virtual vehicle track model, and virtual vehicle, test results including virtual vehicle running route test results, virtual vehicle test results, and whether task completion instructions have been sent are generated, thereby improving the accuracy and scope of verification.

Benefits of technology

No on-site verification is required, which improves verification efficiency, reduces security risks, and comprehensively tests the rationality and feasibility of scheduling strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116225940B_ABST
    Figure CN116225940B_ABST
Patent Text Reader

Abstract

The application provides a test method and device of a scheduling strategy, electronic equipment and a storage medium, and relates to the technical field of computers. The test method of the scheduling strategy comprises the following steps: performing virtual locomotive scheduling simulation based on a preset scheduling strategy, a preset virtual locomotive track model and a preset virtual locomotive; and obtaining a test result based on a simulation result of the virtual locomotive scheduling simulation, wherein the test result comprises at least one of a virtual locomotive running route test result, a virtual locomotive test result and whether a task completion instruction is sent. The test personnel do not need to go to the scene to verify and debug, the verification efficiency is improved, the safety risk is reduced, and the accuracy and application range of the scheme are improved because the test result finally obtained comprises at least one of the virtual locomotive running route test result, the virtual locomotive test result and whether the task completion instruction is sent, which can comprehensively reflect possible problems of the scheduling strategy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, in particular to a test method and device for a dispatch strategy, an electronic device and a storage medium. BACKGROUND

[0002] Currently, verification of a track locomotive dispatch program needs to wait until the locomotive track and corresponding hardware are reformed, and then a test personnel goes to the site to perform verification debugging. The on-site verification needs to meet many conditions, and has low verification efficiency and high safety risk. SUMMARY

[0003] The present application provides a test method and device for a dispatch strategy, an electronic device and a storage medium to solve the problem of many conditions to be met for on-site verification in the prior art, low verification efficiency and high safety risk.

[0004] In a first aspect, the present application provides a test method for a dispatch strategy, comprising: performing virtual locomotive dispatch simulation based on a preset dispatch strategy, a preset virtual locomotive track model and a preset virtual locomotive; obtaining a test result based on a simulation result of the virtual locomotive dispatch simulation, the test result comprising at least one of a virtual locomotive running route test result, a virtual locomotive test result and whether a task completion instruction is sent.

[0005] In the embodiments of the present application, the virtual locomotive dispatch simulation is performed based on the preset dispatch strategy, the preset virtual locomotive track model and the preset virtual locomotive, without the need for a test personnel to go to the site to perform verification debugging, thereby improving the verification efficiency and reducing the safety risk. Moreover, since the final test result includes at least one of the virtual locomotive running route test result, the virtual locomotive test result and whether the task completion instruction is sent, the possible problems of the dispatch strategy can be comprehensively reflected, thereby improving the accuracy and application range of the present solution.

[0006] In combination with the technical solution of the above first aspect, in some possible implementation manners, the simulation result comprises a route of the virtual locomotive, and the obtaining of the test result based on the simulation result of the virtual locomotive dispatch simulation comprises: obtaining a corresponding preset standard route from a preset standard route library based on a starting position and a terminal position of the route of the virtual locomotive; judging whether the route of the virtual locomotive is a nearest route based on the preset standard route; and if the route of the virtual locomotive is not the nearest route, generating a test result comprising that the virtual locomotive running route is too long.

[0007] In the embodiments of the present application, whether the route of the virtual locomotive is the nearest route is judged, so that whether the running route determined by the dispatch strategy is reasonable can be detected, thereby improving the comprehensiveness of the test result.

[0008] In some possible implementation manners, the simulation result comprises a route in which the virtual locomotive runs, and the test result is obtained based on the simulation result of the virtual locomotive dispatch simulation, and the obtaining comprises: determining whether the route in which the virtual locomotive runs comprises a road section that is impassable for the virtual locomotive based on preset passing data comprising passing states of all road sections in the virtual locomotive track model; and if the route in which the virtual locomotive runs comprises the road section that is impassable for the virtual locomotive, generating a test result comprising that the route in which the virtual locomotive runs is impassable.

[0009] In the embodiments of the present application, whether the route in which the virtual locomotive runs is feasible can be determined by determining whether the route in which the virtual locomotive runs comprises the road section that is impassable for the virtual locomotive, so that the dimension of detection is increased and the comprehensiveness of the test result is improved.

[0010] In some possible implementation manners, the simulation result comprises a route in which the virtual locomotive runs, and the test result is obtained based on the simulation result of the virtual locomotive dispatch simulation, and the obtaining comprises: determining whether the virtual locomotive passes a target road section, and if the virtual locomotive does not pass the target road section, generating a test result comprising that the virtual locomotive does not pass the road section of the scanning point, wherein the target road section is a road section on which a scanning point is set.

[0011] In the embodiments of the present application, whether the route in which the virtual locomotive runs meets actual needs can be determined by determining whether the virtual locomotive passes the target road section, so that the dimension of detection is increased and the comprehensiveness of the test result is improved.

[0012] In some possible implementation manners, the simulation result comprises a route in which the virtual locomotive runs, and the test result is obtained based on the simulation result of the virtual locomotive dispatch simulation, and the obtaining comprises: determining whether the route in which the virtual locomotive runs comprises a road section that is impassable for the virtual locomotive based on preset passing data comprising passing states of all road sections in the virtual locomotive track model; and if the route in which the virtual locomotive runs comprises the road section that is impassable for the virtual locomotive, generating a test result comprising that the route in which the virtual locomotive runs is impassable.

[0013] In the embodiments of the present application, whether the route in which the virtual locomotive runs is feasible can be determined by determining whether the route in which the virtual locomotive runs comprises the road section that is impassable for the virtual locomotive, so that the dimension of detection is increased and the comprehensiveness of the test result is improved.

[0014] In some possible implementation manners, the scheduling strategy is obtained by a track locomotive scheduling program, and the method further includes: in a case where the virtual locomotive reaches a destination, determining whether a task completion instruction sent by the track locomotive scheduling program is received within a preset time length; and accordingly, the test result is obtained based on the simulation result of the virtual locomotive scheduling simulation, including: if the task completion instruction sent by the track locomotive scheduling program is not received within the preset time length, generating the test result including that the task completion instruction is not sent.

[0015] In the embodiment of the application, whether the virtual locomotive receives the task completion instruction sent by the track locomotive scheduling program after the virtual locomotive reaches the destination is detected, so as to detect whether the scheduling strategy can accurately determine whether the virtual locomotive task is completed, and prevent the situation that the virtual locomotive cannot execute a next task due to not receiving the task completion instruction after reaching the destination, thereby increasing the dimension of detection and improving the comprehensiveness of the test result.

[0016] In the second aspect, the application provides a test device for a scheduling strategy, including: a simulation module and a test module, the simulation module is configured to perform virtual locomotive scheduling simulation based on a preset scheduling strategy, a preset virtual locomotive track model and a preset virtual locomotive, and the test module is configured to obtain a test result based on a simulation result of the virtual locomotive scheduling simulation, the test result including at least one of: a virtual locomotive running route test result, a virtual locomotive test result and whether a task completion instruction is sent.

[0017] In some possible implementation manners, the simulation result includes a route of the virtual locomotive, and the test module is specifically configured to: obtain a corresponding preset standard route from a preset standard route library based on a starting position and a terminal position of the route of the virtual locomotive; determine whether the route of the virtual locomotive is a nearest route based on the preset standard route; and if the route of the virtual locomotive is not the nearest route, generate a test result including that the virtual locomotive running route is too long.

[0018] In the third aspect, the electronic device includes a memory and a processor, the memory and the processor are connected, the memory is configured to store a program, and the processor is configured to call the program stored in the memory to execute the method provided in the first aspect and / or any possible implementation manner of the first aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a computer, performs the method according to the first aspect and / or any possible implementation of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as a limitation to the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0021] Figure 1 A flowchart of a test method of a scheduling strategy according to an embodiment of the present application is shown in the figure.

[0022] Figure 2 A structural block diagram of a test device of a scheduling strategy according to an embodiment of the present application is shown in the figure.

[0023] Figure 3 A structural block diagram of an electronic device according to an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0024] The technical solutions of the present application will be described in detail below with reference to the drawings.

[0025] Please refer to Figure 1 , Figure 1 A flowchart of a test method of a scheduling strategy according to an embodiment of the present application is shown in the figure. The test method of the scheduling strategy is applied in a simulation program. The simulation software can be a logistics simulation software, such as Flexsim, RaLC, Automod, SimLab, etc. The specific type of the simulation software is not limited here. The following will be described in combination with Figure 1 The steps contained therein will be described below.

[0026] S100: Perform virtual locomotive scheduling simulation based on a preset scheduling strategy, a preset virtual locomotive track model and a preset virtual locomotive.

[0027] The scheduling strategy can be pre-acquired and stored in a database, and can be directly called when needed. Alternatively, the scheduling strategy can be acquired in real time when needed, for example, the simulation program can communicate with a scheduling program to acquire the scheduling strategy in real time from the scheduling program.

[0028] The preset virtual locomotive track model and the preset virtual locomotive are both models established in advance in the simulation program.

[0029] The virtual locomotive track model can include tracks, turnouts, signal machines, and sensors.

[0030] The turnout is a connection point of three tracks (main line track, positioning track, and reverse track). The main line track is connected with one of the positioning track and the reverse track through the turnout control, for example, the main line track is connected with the positioning track, and at this time, the virtual locomotive runs from the main line track to the positioning track through the turnout. Alternatively, the main line track is connected with the reverse track, and at this time, the virtual locomotive runs from the main line track to the reverse track through the turnout.

[0031] The sensors are arranged on the main line track, the positioning track, and the reverse track of the turnout, and are used to detect the virtual locomotive on the track. The distance between the sensor and the turnout can be set according to actual needs, for example, the sensor can be arranged at a position 10 meters away from the turnout on the main line track. This example is only for easy understanding and should not be regarded as a limitation to the present application.

[0032] The signal machine can be arranged at the position of the sensor, and is used to indicate the connection state of the current turnout. For example, when the signal machine is lighted, it represents that the current turnout can be passed; when the signal machine is extinguished, it represents that the current turnout cannot be passed. Alternatively, the signal machine can include two indicator lights, i.e., a first indicator light and a second indicator light. When the first indicator light is lighted (or displayed as green) and the second indicator light is extinguished (or displayed as red), it represents that the main line track is connected with the positioning track; when the first indicator light is extinguished (or displayed as red) and the second indicator light is lighted (or displayed as green), it represents that the main line track is connected with the reverse track. The distance is only for easy understanding and should not be regarded as a limitation to the present application.

[0033] Before S100, the user can send a model construction instruction to the electronic device, select a plurality of track, turnout, signal machine, sensor, and other virtual locomotive track model components, and indicate the connection mode between the selected different locomotive track model components through the model construction instruction. The electronic device responds to the model construction instruction through the simulation software, and combines the selected plurality of track, turnout, signal machine, sensor, and other virtual locomotive track model components in the simulation software according to the connection mode between the selected different locomotive track model components indicated by the model construction instruction, to obtain the virtual locomotive track model.

[0034] The user can also send a virtual locomotive construction instruction to the electronic device, and the electronic device responds to the virtual locomotive construction instruction through the simulation software to generate a plurality of virtual locomotives in the virtual locomotive track model. The number of virtual locomotives and the position of each virtual locomotive are obtained through the virtual locomotive construction instruction.

[0035] The electronic device can also build an attribute management table for each model component in the virtual locomotive track model and an attribute management table for each virtual locomotive through simulation software.

[0036] For example, the attribute management table of the turnout can include the turnout number, the main track number, the positioning track number, the reverse positioning track number, and the turnout connection state. The attribute management table of the track can include the track number, the track position, the model component number connected to the first end of the track, and the model component number connected to the second end of the track. The attribute management table of the sensor can include the sensor number, the sensor setting position, and the sensor working state. The attribute management table of the signal machine can include the signal machine number, the signal machine setting position, and the signal machine indication state. The attribute management table of the virtual locomotive can include the virtual locomotive number, the virtual locomotive position, and the virtual locomotive driving state.

[0037] To make the simulation results more realistic, the virtual locomotive track model and the virtual locomotive can be set with real longitude and latitude in combination with the actual map. The longitude and latitude of each model component and virtual locomotive can be written into the corresponding attribute management table.

[0038] Correspondingly, when performing virtual locomotive dispatch simulation, the simulation software in the electronic device controls the virtual locomotive track model and the virtual locomotive to perform corresponding actions based on the dispatch strategy.

[0039] For ease of understanding, a virtual locomotive is taken as an example to start from site A, pass through track 1, turnout 1, track 2, site B, and track 3 in sequence, and arrive at site C. The dispatch strategy can be: first control the virtual locomotive to start in the direction of site B, when the sensor on the main track (track 1) of turnout 1 detects the arrival of the virtual locomotive, control the main track of turnout 1 to be connected with track 2, at this time, the signal machine on the main track can be controlled to display the corresponding prompt information. When the sensor set near turnout 1 on track 2 detects that the virtual locomotive has left turnout 1, turnout 1 can execute the next dispatch instruction. When the virtual locomotive arrives at site B, control the virtual locomotive to stop, and after a certain time, control the virtual locomotive to start in the direction of site C. When the virtual locomotive arrives at site C, control the virtual locomotive to stop, and after a preset time, send a task completion instruction to the virtual locomotive. The virtual locomotive receiving the task completion instruction can execute the next dispatch strategy. The example is only for ease of understanding and should not be regarded as a limitation of the present application.

[0040] S200: Obtain a test result based on the simulation result of the virtual locomotive dispatch simulation.

[0041] The test result includes at least one of a virtual locomotive running route test result, a virtual locomotive test result, and whether a task completion instruction is sent.

[0042] In order to detect whether the running route formulated by the scheduling strategy is reasonable, in an implementation, the simulation result includes a route of the virtual locomotive running, and based on the simulation result of the virtual locomotive scheduling simulation, the specific process of obtaining the test result can be: based on the start position and the end position of the route of the virtual locomotive running, obtaining a corresponding preset standard route from a preset standard route library; based on the preset standard route, judging whether the route of the virtual locomotive running is the nearest route; if the route of the virtual locomotive running is not the nearest route, generating a test result including that the route of the virtual locomotive running is too long.

[0043] In order to facilitate understanding, taking a route of the virtual locomotive running through site A, site B, site C, and site D in turn as an example, wherein site A is the start position and site D is the end position. If the corresponding preset standard route of the preset standard route library with the start position being site A and the end position being site D is site A, site B, site C, and site D, it is determined that the route of the virtual locomotive running is the nearest route. If the corresponding preset standard route of the preset standard route library with the start position being site A and the end position being site D is site A, site B, and site D, it is determined that the route of the virtual locomotive running is not the nearest route. The examples herein are only for facilitating understanding and should not be regarded as a limitation on the present application.

[0044] In order to detect whether the running route formulated by the scheduling strategy is feasible, in an implementation, the simulation result includes a route of the virtual locomotive running, and based on the simulation result of the virtual locomotive scheduling simulation, the specific process of obtaining the test result can be: based on preset passing data including passing states of all route sections in the virtual locomotive track model, judging whether the route of the virtual locomotive running includes a route section that is not passable by the virtual locomotive; if the route of the virtual locomotive running includes a route section that is not passable, generating a test result including that the route of the virtual locomotive running is not passable.

[0045] In order to facilitate understanding, taking a route of the virtual locomotive running through site A, site B, site C, and site D in turn as an example, based on the communication data, it is determined whether there is a route section that is not passable between site A and site B, between site B and site C, and between site C and site D, if not, it is determined that the route is passable. If there is a route section that is not passable, a test result including that the route of the virtual locomotive running is not passable is generated. The examples herein are only for facilitating understanding and should not be regarded as a limitation on the present application.

[0046] The route section that is not passable can include an occupied route section (the route section is occupied by other virtual locomotives), route section construction, and a route section that is not passable due to environmental factors, and the examples herein are only for facilitating understanding and should not be regarded as a limitation on the present application.

[0047] In order to detect whether the running route formulated by the scheduling strategy meets the actual needs, in one embodiment, the simulation result includes the route of the virtual locomotive running, and based on the simulation result of the virtual locomotive scheduling simulation, the specific process of obtaining the test result can be: determining whether the virtual locomotive has passed the target route section, if the virtual locomotive has not passed the target route section, generating a test result including the route section of the virtual locomotive not passing the scanning point, wherein the target route section is the route section on which the scanning point is set.

[0048] In order to facilitate understanding, taking the route of the virtual locomotive running through the station A, the station B, the station C and the station D in sequence as an example, if the scanning point is set on the route section between the station B and the station C, that is, the target route section is the route section between the station B and the station C. Since the virtual locomotive has passed the route section between the station B and the station C, it is determined that the running route formulated by the scheduling strategy meets the actual needs. If the scanning point is set on the route section between the station B and the station E, since the virtual locomotive has not passed the route section between the station B and the station E, it is determined that the virtual locomotive has not passed the target route section. The examples herein are only for facilitating understanding and should not be regarded as a limitation on the present application.

[0049] In order to detect whether the control of the virtual locomotive by the scheduling strategy is reasonable, in one embodiment, the simulation result includes the direction of the virtual locomotive running, and based on the simulation result of the virtual locomotive scheduling simulation, the test result is obtained, including: judging whether the direction of the virtual locomotive running is correct; if the direction of the virtual locomotive running is incorrect, generating a test result including the incorrect direction of the virtual locomotive running.

[0050] In order to facilitate understanding, taking the route of the virtual locomotive running through the station A, the station B, the station C and the station D in sequence as an example, wherein the starting position is the station A and the terminal position is the station D. If the virtual locomotive needs to run from the station A to the station B in the first direction, it is judged whether the running direction of the virtual locomotive at the station A is the first direction, if not, it is confirmed that the running direction of the virtual locomotive is incorrect. The examples herein are only for facilitating understanding and should not be regarded as a limitation on the present application.

[0051] In order to prevent the problem of the virtual locomotive being unable to perform the next task after reaching the destination due to not receiving the task completion instruction, in one embodiment, in the case that the virtual locomotive reaches the destination, it is judged whether the task completion instruction sent by the track locomotive scheduling program is received within a preset time length. Correspondingly, based on the simulation result of the virtual locomotive scheduling simulation, the specific process of obtaining the test result can be: if the task completion instruction sent by the track locomotive scheduling program is not received within the preset time length, generating a test result including that the task completion instruction is not sent. The scheduling strategy is obtained through the track locomotive scheduling program.

[0052] By detecting whether the virtual locomotive receives the task completion instruction sent by the track locomotive dispatcher after the virtual locomotive arrives at the destination, it can be detected whether the scheduling strategy can accurately determine whether the virtual locomotive task is completed, and prevent the situation that the virtual locomotive cannot execute the next task due to not receiving the task completion instruction after arriving at the destination, increase the dimension of detection, and improve the comprehensiveness of the test results.

[0053] The preset time length can be set according to actual needs, for example, it can be set to 1 minute, 2 minutes, etc. Here, examples are only for easy understanding, and should not be regarded as a limitation of the present application.

[0054] In order to determine whether the indication information sent by the signal machine is correct, in one embodiment, it can be detected whether the prompt information sent by the signal machine matches the instruction executed by the corresponding turnout. When the prompt information sent by the signal machine does not match the instruction executed by the corresponding turnout, a test result including signal machine signal indication error is generated.

[0055] For easy understanding, the main line track of turnout 1 is track 1, the positioning track is track 2, and the reverse positioning track is track 3.

[0056] If the turnout 1 connects the track 1 and the track 2 under the control of the scheduling strategy, at this time, if the signal machine prompts that the turnout is not connected, or prompts that the track 1 and the track 3 of the turnout are connected, it is confirmed that the prompt information sent by the signal machine is incorrect. If the signal machine prompts that the turnout has been connected, or prompts that the track 1 and the track 2 of the turnout are connected, it is confirmed that the prompt information sent by the signal machine is correct.

[0057] After obtaining the test result, the test result and / or simulation result can also be sent to an external system, and then the test is ended.

[0058] In order to facilitate the understanding of the above-mentioned scheduling strategy test method, the present application provides an embodiment of the above-mentioned scheduling strategy test method.

[0059] First, a virtual locomotive track model and a virtual locomotive are constructed, and then a communication connection is established with the dispatcher and the scheduling strategy sent by the dispatcher is received.

[0060] It is judged whether the route of the virtual locomotive is the nearest route. If the route of the virtual locomotive is not the nearest route, a test result including that the route of the virtual locomotive is too long is generated. If the route of the virtual locomotive is the nearest route, a test result including that the route planning of the virtual locomotive is correct is generated.

[0061] determining whether the route of the virtual locomotive includes a route segment that is not passable by the virtual locomotive, and if the route of the virtual locomotive includes a route segment that is not passable by the virtual locomotive, generating a test result including that the route of the virtual locomotive is not passable.

[0062] determining whether the virtual locomotive has passed the target route segment, and if the virtual locomotive has not passed the target route segment, generating a test result including that the virtual locomotive has not passed the route segment of the scanning point. If the virtual locomotive has passed the target route segment, generating a test result including that the virtual locomotive has passed the route segment of the scanning point.

[0063] determining whether the direction of the virtual locomotive is correct, and if the direction of the virtual locomotive is incorrect, generating a test result including that the direction of the virtual locomotive is incorrect. If the direction of the virtual locomotive is correct, generating a test result including that the direction of the virtual locomotive is correct.

[0064] in a case where the virtual locomotive reaches the destination, determining whether a task completion instruction sent by the track locomotive dispatcher is received within a preset time length. If the task completion instruction sent by the track locomotive dispatcher is not received within the preset time length, generating a test result including that the task completion instruction is not sent. If the task completion instruction sent by the track locomotive dispatcher is received within the preset time length, generating a test result including that the task completion instruction is normally sent.

[0065] determining whether the prompt information sent by the signal machine matches the instruction executed by the corresponding turnout, and when the prompt information sent by the signal machine does not match the instruction executed by the corresponding turnout, generating a test result including that the signal indication of the signal machine is incorrect. When the prompt information sent by the signal machine matches the instruction executed by the corresponding turnout, generating a test result including that the signal indication of the signal machine is correct.

[0066] The plurality of determination steps described above can be executed in parallel, sequentially in a certain order, or the execution order is not limited herein.

[0067] The specific implementation manners and principles of the steps described above have been described in the foregoing, and will not be described herein again for brevity.

[0068] Based on the same inventive concept, the present application also provides a testing device for a dispatching strategy, as shown in Figure 2 The testing device for a dispatching strategy 100 includes a simulation module 110 and a testing module 120.

[0069] The simulation module 110 is configured to perform virtual locomotive dispatching simulation based on a preset dispatching strategy, a preset virtual locomotive track model, and a preset virtual locomotive.

[0070] The test module 120 is configured to obtain a test result based on the simulation result of the virtual locomotive dispatch simulation, and the test result includes at least one of a virtual locomotive running route test result, a virtual locomotive test result, and whether a task completion instruction is sent.

[0071] The simulation result includes a route in which the virtual locomotive runs, and the test module 120 is specifically configured to obtain a corresponding preset standard route from a preset standard route library based on a start position and an end position of the route in which the virtual locomotive runs; determine whether the route in which the virtual locomotive runs is a nearest route based on the preset standard route; and if the route in which the virtual locomotive runs is not the nearest route, generate a test result including that the virtual locomotive running route is too long.

[0072] The simulation result includes a route in which the virtual locomotive runs, and the test module 120 is specifically configured to determine whether the route in which the virtual locomotive runs includes a road segment that is not passable by the virtual locomotive based on preset passing data including passing states of all road segments in the virtual locomotive track model; and if the route in which the virtual locomotive runs includes the road segment that is not passable by the virtual locomotive, generate a test result including that the virtual locomotive running route is not passable.

[0073] The simulation result includes a route in which the virtual locomotive runs, and the test module 120 is specifically configured to determine whether the virtual locomotive has passed a target road segment, and if the virtual locomotive has not passed the target road segment, generate a test result including that the virtual locomotive has not passed a road segment with a scanning point, where the target road segment is a road segment with a scanning point.

[0074] The simulation result includes a direction in which the virtual locomotive runs, and the test module 120 is specifically configured to determine whether the direction in which the virtual locomotive runs is correct; and if the direction in which the virtual locomotive runs is incorrect, generate a test result including that the direction in which the virtual locomotive runs is incorrect.

[0075] The dispatch strategy is obtained through a track locomotive dispatch program, and the test module 120 is further configured to determine whether a task completion instruction sent by the track locomotive dispatch program is received within a preset time length in a case where the virtual locomotive arrives at a destination; and if the task completion instruction sent by the track locomotive dispatch program is not received within the preset time length, generate a test result including that the task completion instruction is not sent.

[0076] The test device 100 for the dispatch strategy provided in the embodiments of the present application has the same implementation principle and technical effects as the foregoing audio file playing method embodiments, and for brevity of description, the part of the device embodiments not mentioned can be referred to the corresponding content in the foregoing audio file playing method embodiments.

[0077] Please refer toFigure 3 This is an electronic device 200 provided in an embodiment of this application. The electronic device 200 includes: a processor 210 and a memory 220.

[0078] The memory 220 is used to store computer programs, such as those containing... Figure 2 The software functional module shown is the scheduling strategy testing device 100. The scheduling strategy testing device 100 includes at least one software functional module that can be stored as software or firmware in the memory 220 or embedded in the operating system (OS) of the electronic device 200. The processor 210 is used to execute executable modules stored in the memory 220, such as the software functional modules or computer programs included in the scheduling strategy testing device 100. At this time, the processor 210 is used to perform virtual vehicle scheduling simulation based on a preset scheduling strategy, a preset virtual vehicle track model, and a preset virtual vehicle; based on the simulation results of the virtual vehicle scheduling simulation, test results are obtained, including at least one of: virtual vehicle running route test results, virtual vehicle test results, and whether a task completion instruction has been sent.

[0079] The memory 220 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0080] The processor 210 can be an integrated circuit chip having a processing capability of signals. The processor can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; or a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor 210 can also be any conventional processor or the like.

[0081] The memory 220 and the processor 210 are directly or indirectly electrically connected to realize the transmission or interaction of data. For example, the electrical connection can be realized by one or more communication buses or signal lines.

[0082] The above electronic device can also include other components, such as a transceiver, etc., which are not limited here.

[0083] The above electronic device 200 includes but is not limited to a personal computer, a server, etc.

[0084] The embodiments of the present application also provide a non-volatile computer readable storage medium (hereinafter referred to as storage medium) having a computer program stored thereon. When the computer program is run by a computer such as the above electronic device 200, the test method of the above scheduling strategy is executed. The computer readable storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0085] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for testing a scheduling strategy, characterized in that, include: Virtual vehicle scheduling simulation is performed based on a preset scheduling strategy, a preset virtual vehicle track model, and a preset virtual vehicle. Based on the simulation results of the virtual vehicle scheduling simulation, test results are obtained, including at least one of the following: virtual vehicle running route test results, virtual vehicle test results, and whether a task completion instruction has been sent. If the simulation results include the route the virtual machine vehicle runs, the simulation results based on the virtual machine vehicle scheduling simulation, yielding test results, include: Based on the start and end positions of the route run by the virtual vehicle, the corresponding preset standard route is obtained from the preset standard route library. Based on the preset standard route, determine whether the route taken by the virtual vehicle is the shortest route; If the route taken by the virtual machine is not the shortest route, a test result is generated that includes cases where the virtual machine's route is too long.

2. The method according to claim 1, characterized in that, The simulation results include the route taken by the virtual machine vehicle. The test results obtained based on the simulation results of the virtual machine vehicle scheduling simulation include: Based on preset traffic data including the traffic status of all road segments in the virtual vehicle track model, determine whether the route of the virtual vehicle includes road segments that the virtual vehicle cannot pass. If the route taken by the virtual machine includes impassable sections, a test result is generated indicating that the route taken by the virtual machine is impassable.

3. The method according to claim 1, characterized in that, The simulation results include the route taken by the virtual machine vehicle. The test results obtained based on the simulation results of the virtual machine vehicle scheduling simulation include: Determine whether the virtual machine vehicle has passed through the target road segment. If the virtual machine vehicle has not passed through the target road segment, generate test results including road segments where the virtual machine vehicle has not passed through the scan points, wherein the target road segment is a road segment with scan points set.

4. The method according to claim 1, characterized in that, The simulation results include the direction of the virtual machine vehicle's operation. The test results obtained based on the simulation results of the virtual machine vehicle scheduling simulation include: Determine whether the virtual machine vehicle is running in the correct direction; If the virtual machine is running in the wrong direction, a test result including the virtual machine running in the wrong direction will be generated.

5. The method according to claim 1, characterized in that, The scheduling strategy is obtained through a rail locomotive scheduling program, and the method further includes: When the virtual vehicle reaches its destination, determine whether a task completion instruction sent by the rail locomotive scheduling program has been received within a preset time period; Accordingly, the test results obtained from the simulation results based on the virtual vehicle scheduling simulation include: If no task completion instruction is received from the rail locomotive dispatching program within the preset time period, a test result is generated that indicates the task completion instruction was not sent.

6. A testing device for a scheduling strategy, characterized in that, include: The simulation module is used to perform virtual vehicle scheduling simulation based on a preset scheduling strategy, a preset virtual vehicle track model, and a preset virtual vehicle. The testing module is used to obtain test results based on the simulation results of the virtual vehicle scheduling simulation. The test results include at least one of the following: virtual vehicle running route test results, virtual vehicle test results, and whether a task completion instruction has been sent. If the simulation result includes the route of the virtual machine vehicle, the testing module is specifically used to obtain a corresponding preset standard route from a preset standard route library based on the start and end positions of the route of the virtual machine vehicle; based on the preset standard route, determine whether the route of the virtual machine vehicle is the shortest route; if the route of the virtual machine vehicle is not the shortest route, generate a test result including the virtual machine vehicle route being too long.

7. An electronic device, characterized in that, include: A memory and a processor, wherein the memory and the processor are connected; The memory is used to store programs; The processor is configured to invoke a program stored in the memory to execute the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a computer, performs the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Operation simulation system for road rail transit trains

    CN109143895A