Turnout action optimization control method, equipment and medium under energy constraint condition
1. A turnout action optimization control method under an energy constraint condition is characterized in that a turnout power supply module is used as a resource, and efficient cooperative control is achieved between a control command input by a turnout and a control command output by the turnout according to the number of turnout machines which can support simultaneous action by the capacity of the turnout power supply module.
2. The method for controlling the optimal operation of the turnout under the energy constraint condition according to claim 1, wherein the method ensures that the control command input by the turnout and the control command output by the turnout are executed simultaneously.
3. The method for controlling the optimal operation of the turnout under the energy constraint condition according to claim 1, wherein the method defines the conditions of turnout control input and turnout control output, and establishes a buffer area for the turnout input control command and a buffer area for the turnout output control command, so as to prevent the turnout control command from entering a deadlock state.
4. The switch operation optimization control method under the energy constraint condition according to claim 1, characterized in that the resources of the switch power supply module are distributed based on the first-come-first-serve and sequential execution principles.
5. The switch action optimization control method under the energy constraint condition according to claim 1, characterized in that the resources of the switch power supply module only allow the switch control command to be output under the limit condition of the rated capacity of the switch power supply module at any time, and when the output switch control command exceeds the rated capacity of the switch power supply module, the switch control command is set to be in a waiting state, so as to ensure that the number of the executed switch control commands is within the switch power supply capacity range, and the risk of switch power supply failure is reduced.
6. The switch action optimization control method under the energy constraint condition according to claim 1, characterized in that the execution process of the method comprises the following steps:
after the signal system is started, the control command input by the turnout enters a ready state, and the control command output by the turnout enters the ready state;
in the operation process of a signal system, the number of received turnout commands is N, if N is less than or equal to N, the N turnout commands are sequenced on the basis of sequence numbers, the N turnout commands are set to be in a turnout input command queue state, and in the state, control commands input by the turnout sequentially execute turnout output control on the basis of respective serial numbers; and if N is larger than N, sequencing the number of the first N turnout commands based on the sequence number, and setting the subsequent N-N turnout commands as the 'blockage state of the turnout input command'.
Where N is the number of active switch commands received by the definition system.
7. The method for controlling the switch operation optimization under the energy constraint condition according to claim 6, wherein the execution process of the method further comprises:
if the control command input by the turnout is currently in a queuing state and the number m of the current turnout power supply module supporting the switch machine to work is greater than 0, determining that the resources of the turnout power supply module are available, allocating the control command input by the turnout with the serial number of 1 and the control command input by the turnout in the queuing state to enter a turnout control cache region until the number of the turnout control cache region is full, and exiting the circulation condition; when the execution of one switch command is completed, one switch power source resource is automatically released, and another switch input command in a queuing state is waited to be executed.
8. The switch action optimization control method under the energy constraint condition according to claim 7, characterized in that the control command input by the switch enters a ready state, namely the number n of the received switch commands is 0; and the control command output by the turnout enters a ready state, namely the number M of turnout power supply supporting the switch machine to work is equal to M, wherein M is the number of the turnout power supply module supporting the switch machine to rotate at the same time.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-8.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
Background
In the operation process of a traditional signal system, if the number of the points of the traditional signal system is larger than the power supply capacity of the points, the traditional signal system can cause power supply faults, and then operation interruption is caused. In order to prevent the fault, the technical requirement of driving the turnout by staggering the peak is provided. In the current signal system, on one hand, the number of the driven turnouts does not reach the maximum available capacity of a turnout power supply, and on the other hand, the turnouts are started based on a predefined peak shifting sequence, so that the action time of the whole turnout is prolonged, and the rail transit operation capacity is sacrificed; on the other hand, the predefined switch peak shifting action sequence relationship is only defined between a plurality of switches in a route or between a plurality of switch machines of a group of switches, for the switches which do not have the association relationship with the route, the switch peak shifting action sequence relationship is not defined, the randomness of the switches is operated due to the handling of parallel routes or manual maintenance, and the number of the switch machines which act at the same time may exceed the power supply capacity of the switch power module, thereby causing the switch power module to break down and further causing the operation to be interrupted.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a turnout action optimization control method, equipment and medium under the condition of energy constraint.
The purpose of the invention can be realized by the following technical scheme:
according to the first aspect of the invention, the method for controlling the turnout action optimization under the energy constraint condition is provided, the turnout power supply module is used as a resource, and efficient cooperative control is realized between the control command input by the turnout and the control command output by the turnout according to the number of turnout switch machines which can support simultaneous action by the capacity of the turnout power supply module.
As a preferred technical solution, the method ensures that the control command input by the switch and the control command output by the switch are executed concurrently.
As a preferred technical scheme, the method limits the conditions of turnout control input and turnout control output, establishes a turnout input control command cache region and a turnout output control command cache region, and is used for preventing the turnout control command from entering a deadlock state.
As a preferred technical solution, the resources of the switch power supply module are allocated based on the principle of first-come-first-serve and sequential execution.
As a preferred technical scheme, the resources of the switch power supply module only allow the switch control command to be output under the limited condition of the rated capacity of the switch power supply module at any time, and when the output switch control command exceeds the rated capacity of the switch power supply module, the switch control command is set to be in a waiting state, so that the execution of the switch control command within the switch power supply capacity range is ensured, and the risk of switch power supply failure is reduced.
As a preferred technical solution, the execution process of the method includes:
after the signal system is started, the control command input by the turnout enters a ready state, and the control command output by the turnout enters the ready state;
in the operation process of a signal system, the number of received turnout commands is N, if N is less than or equal to N, the N turnout commands are sequenced on the basis of sequence numbers, the N turnout commands are set to be in a turnout input command queue state, and in the state, control commands input by the turnout sequentially execute turnout output control on the basis of respective serial numbers; and if N is larger than N, sequencing the number of the first N turnout commands based on the sequence number, and setting the subsequent N-N turnout commands as the 'blockage state of the turnout input command'.
Where N is the number of active switch commands received by the definition system.
As a preferred technical solution, the execution process of the method further includes:
if the control command input by the turnout is currently in a queuing state and the number m of the current turnout power supply module supporting the switch machine to work is greater than 0, determining that the resources of the turnout power supply module are available, allocating the control command input by the turnout with the serial number of 1 and the control command input by the turnout in the queuing state to enter a turnout control cache region until the number of the turnout control cache region is full, and exiting the circulation condition; when the execution of one switch command is completed, one switch power source resource is automatically released, and another switch input command in a queuing state is waited to be executed.
As a preferred technical scheme, the control command input by the turnout enters a ready state, that is, the number n of received turnout commands is 0; and the control command output by the turnout enters a ready state, namely the number M of turnout power supply supporting the switch machine to work is equal to M, wherein M is the number of the turnout power supply module supporting the switch machine to rotate at the same time.
According to a second aspect of the invention, there is provided an electronic device comprising a memory having stored thereon a computer program and a processor implementing the method when executing the program.
According to a third aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method.
Compared with the prior art, the invention has the following advantages:
1. the invention is based on the power supply capacity and the transportation requirement of the rail transit, utilizes a method for cooperatively controlling the turnout, fully utilizes the sufficient power supply capacity to improve the transportation capacity of the rail transit in the turnout area;
2. the turnout action optimization control method based on the energy constraint condition reduces turnout power supply faults, prolongs the service life of the turnout power supply and improves the availability of a signal system;
3. the invention effectively avoids the deadlock of two processes of receiving the turnout input command and outputting the turnout control command to cause the reduction of the rail transit transportation capacity.
Drawings
FIG. 1 is a flow chart of the turnout output command control of the present invention;
fig. 2 is a flow chart of the switch input command control of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention provides a turnout action optimization control method based on turnout power supply energy constraint conditions, which takes a turnout power supply module as a resource, realizes efficient cooperative control between turnout input commands and turnout output control according to the number of turnout switch machines which can be supported to simultaneously act by the capacity of the turnout power supply module, meets the requirement that the power supply capacity of a foot turnout power supply module can be used when turnout is required to act, thereby improving the operation capacity of rail transit, and also can ensure that the risk of turnout power supply failure is reduced and the service life of equipment is prolonged by considering that the number of starting turnouts does not exceed the capacity of the turnout power supply module.
The method ensures the high-efficiency coordinated concurrent execution of the turnout input command and the turnout output control. In order to prevent the turnout control command from entering a deadlock state, the conditions of turnout control input and turnout control output are limited, and a turnout input command cache region and a turnout output control command cache region are established; the turnout power source resource is based on a first-come first-obtained and sequential execution principle; the turnout power supply resource only allows the turnout control command to be output under the limited condition of the rated capacity of the turnout power supply at any moment, and when the turnout control command is output and exceeds the rated capacity of the turnout power supply, the turnout control command is set to be in a waiting state, so that the turnout control command is executed within the turnout power supply capacity range, and the risk of turnout power supply failure is reduced.
Defining the power supply capacity of the turnout power supply module as a resource, namely defining the quantity of turnout power supply modules supporting simultaneous turning of turnout switch machines as M; the number of active switch commands received by the definition system is N.
Assuming that the actual number of switch input commands received is n, the number of switch power supplies supporting the operation of the switch machine is m.
After the signal system is started, the input command of the turnout enters a ready state (the number n of the received turnout commands is 0); the output control of the turnout enters a ready state (the number M of turnout power supplies supporting the operation of the switch machine is equal to M).
In the operation process of a signal system, the number of received turnout commands is N, if N is less than or equal to N, the N turnout input commands are sequenced based on the sequence number, and the N turnout commands are set to be in a turnout input command queue state, and in the state, the turnout input commands sequentially execute turnout output control based on respective serial numbers; and if N is larger than N, sequencing the number of the first N turnout commands based on the sequence number, and setting the subsequent N-N turnout commands as the 'blockage state of the turnout input command'.
If the input command of the turnout is currently in a queuing state and the number m of the turnout power supply supporting the switch machine to work is greater than 0, confirming that the turnout power supply resource is available, allocating the turnout input command with the sequence number of 1 and the turnout input command in the queuing state into a turnout control cache region until the turnout control cache region is full (the number m of the turnout power supply supporting the switch machine to work is 0), and exiting the circulation condition; when the execution of one switch command is completed, one switch power source resource (m +1, all switch command serial number n-1) is automatically released, and another switch input command in a queuing state is waited to be executed. The following steps are executed in a circulating way:
the number m-1 of switch power supplies supporting the operation of the switch machine;
executing the switch machine output control on the switch command with the current serial number 1 (the control delay time can be determined according to the whole performance of the system);
the number m +1 of switch power supplies supporting the operation of the switch machine;
-the number of input commands n-1 for a switch;
-the serial number of all switch input commands minus 1.
As shown in fig. 1: outputting a control flow chart for the turnout;
after the system is started, the output control of the turnout enters a ready state (the actual number M of turnout power supply control commands is equal to M);
under the condition that the number n of input commands of turnouts in a cache region is 0, the input commands of the turnouts enter a ready state, and under the condition that the number M of movable turnouts of a turnout power supply module is M, the output control of the turnouts enters the ready state;
the output control of the turnout is in a blocking state;
under the condition that the input command number n of the turnouts in the cache area is greater than 0 and the number m of the movable turnouts of the turnout power supply module is greater than 0, the number m of the movable turnouts of the turnout power supply module is m-1
Executing output control by using a turnout command with the serial number of 1;
the number m of movable turnouts of the turnout power supply module is equal to m + 1;
the number n of input commands of the switches in the cache area is equal to n-1;
subtracting 1 from the serial numbers of all input commands in the cache region;
under the condition that the number m of the movable turnouts of the turnout power supply module is equal to 0, the output control of the turnout is in a blocking state.
As shown in fig. 2, the switch input command control flow chart;
after the system is started, the input command of the turnout enters a ready state n which is 0;
if the turnout which receives a command to be executed from an access or manually operated turnout belongs to the power supply range of the turnout power supply module, storing the input command of the turnout into a cache region n which is n + 1;
if the number of the input commands of the turnout in the cache region is N > N, the input commands of the turnout enter a blocking state, otherwise, the serial number of the input commands of the turnout in the cache region is N.
The above is a description of method embodiments, and the embodiments of the present invention are further described below by way of apparatus embodiments.
The inventive apparatus comprises a Central Processing Unit (CPU) which may perform various suitable actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM) or loaded from a storage unit into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
A plurality of components in the device are connected to the I/O interface, including: an input unit such as a keyboard, a mouse, etc.; an output unit such as various types of displays, speakers, and the like; storage units such as magnetic disks, optical disks, and the like; and a communication unit such as a network card, modem, wireless communication transceiver, etc. The communication unit allows the device to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processing unit performs the various methods and processes described above, such as the methods of the present invention. For example, in some embodiments, the methods of the present invention may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device via ROM and/or the communication unit. When the computer program is loaded into RAM and executed by a CPU, one or more steps of the method of the present invention described above may be performed. Alternatively, in other embodiments, the CPU may be configured to perform the method of the present invention in any other suitable manner (e.g., by way of firmware).
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:巡检机器人变轨装置