The content of the invention
A kind of control method and device of traffic lights are the embodiment of the invention provides, can more efficiently reduction traffic
Congestion.
In a first aspect, the invention provides a kind of control method of traffic lights, including:
Determine the corresponding at least one setting time section of current point in time;
Obtain the average of automobile at least one setting time section into holding areas and enter quantity;Obtain at least
By the holding areas by setting the automobile of the appointed place of traffic lights to be controlled in one setting time section
Averagely pass through quantity;Wherein, when the time span of the setting time section shows with the current red light of traffic lights to be controlled
It is long and current green light display duration and identical;
According to the average entrance quantity and described averagely by quantity, calculate in the designated area and wait by described
The average waiting quantity of the automobile of appointed place;And according to the average entrance quantity, described averagely by quantity and described
The time span of setting time section, calculates average queuing duration of each automobile in the holding areas;
It is more than the first predetermined threshold value in the average waiting quantity, and the average queuing duration is more than the second predetermined threshold value
When, controlling the current green light display duration of the traffic lights to be controlled increases preset duration, and controls the friendship to be controlled
The current red light display duration of ventilating signal lamp reduces preset duration.
Preferably,
Also include:The first predetermined threshold value is less than in the average waiting quantity, and the average queuing duration is less than second
During predetermined threshold value, the current green light display duration of the traffic lights to be controlled is controlled to reduce preset duration, and control described
The current red light display duration of traffic lights to be controlled increases preset duration.
Preferably,
Also include:The 3rd predetermined threshold value is less than in the average waiting quantity, and the average queuing duration is more than second
During predetermined threshold value, controlling the current green light display duration of the traffic lights to be controlled increases preset duration, and controls described
The current red light display duration of traffic lights to be controlled reduces preset duration.
Preferably,
The average queuing duration that each automobile is calculated in the holding areas, including:
Average queuing duration of each automobile in the holding areas is calculated by equation below:
Wherein, W characterizes average queuing duration, and α is characterized and averagely entered quantity, and β is characterized averagely by quantity, and t is characterized and set
The time span of time period.
Preferably, it is described to calculate the average waiting number waited in the designated area by the automobile of the appointed place
Amount, including:
The average waiting number waited in the designated area by the automobile of the appointed place is calculated by equation below
Amount:
Wherein, L characterizes average waiting quantity, and α is characterized and averagely entered quantity, and β is characterized and averagely passed through quantity.
Second aspect, the embodiment of the invention provides a kind of control device of traffic lights, including:
Determining module, for determining the corresponding at least one setting time section of current point in time;
Acquisition module, the average entrance for obtaining the automobile for entering holding areas at least one setting time section
Quantity;Obtain in setting time section described at least one by the holding areas by setting specifying for traffic lights to be controlled
The average of the automobile in place passes through quantity;Wherein, the time span of setting time section and traffic lights to be controlled are worked as
Preceding red light display duration and current green light show duration and identical;
Computing module, for according to the average entrance quantity and described averagely by quantity, calculating the designated area
The interior average waiting quantity waited by the automobile of the appointed place;And according to the average entrance quantity, described average
By quantity and the time span of setting time section, when calculating average queuing of each automobile in the holding areas
It is long;
First control module, for being more than the first predetermined threshold value in the average waiting quantity, and during the average queuing
When length is more than the second predetermined threshold value, controlling the current green light display duration of the traffic lights to be controlled increases preset duration,
And control the current red light of the traffic lights to be controlled to show that duration reduces preset duration.
Preferably,
Also include:Second control module for being less than the first predetermined threshold value and described average in the average waiting quantity
When queuing duration is less than the second predetermined threshold value, controls the current green light display duration of the traffic lights to be controlled to reduce and preset
Duration, and control the current red light of the traffic lights to be controlled to show that duration increases preset duration.
Preferably,
Also include:3rd control module for being less than the 3rd predetermined threshold value and described average in the average waiting quantity
When queuing duration is more than the second predetermined threshold value, controlling the current green light display duration of the traffic lights to be controlled increases default
Duration, and control the current red light of the traffic lights to be controlled to show that duration reduces preset duration.
Preferably,
The computing module, including:First computing unit;Wherein,
First computing unit, it is average in the holding areas for calculating each automobile by equation below
Queuing duration:
Wherein, W characterizes average queuing duration, and α is characterized and averagely entered quantity, and β is characterized averagely by quantity, and t is characterized and set
The time span of time period.
Preferably, the computing module, including:Second computing unit;Wherein,
Second computing unit, is waited by described specified for being calculated in the designated area by equation below
The average waiting quantity of the automobile of point:
Wherein, L characterizes average waiting quantity, and α is characterized and averagely entered quantity, and β is characterized and averagely passed through quantity.
A kind of control method and device of traffic lights are the embodiment of the invention provides, in the method, by obtaining
Automobile in the corresponding holding areas of traffic lights to be controlled is reached in the corresponding multiple setting times section of current point in time
It is average to enter quantity, and obtain in multiple setting time sections by holding areas by setting specifying for traffic lights to be controlled
The average of the automobile in place passes through quantity, due to the time span and the current red light of traffic lights to be controlled of setting time section
Display duration and green light show duration and equal, therefore, according to average into quantity, averagely by quantity and setting time section
Time span, you can the average waiting quantity and average queuing duration of automobile in holding areas are calculated, accordingly, flat
When waiting quantity is more than the first predetermined threshold value, and average queuing duration more than the second predetermined threshold value, then traffic to be controlled is illustrated
The green light display duration of signal lamp is partially short, and red light display duration is partially long, by controlling the current green of traffic lights to be controlled
Lamp display duration increases preset duration, and controls the current red light of traffic lights to be controlled to show that duration reduces preset duration,
A large amount of automobiles in holding areas then can pass through appointed place in green light display duration more long, reduce in holding areas
Automobile quantity, meanwhile, shorter red light display duration can make the automobile wait of short period is only needed in holding areas i.e.
Can be quickly through appointed place, so that more efficiently reduction traffic congestion.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiment of the invention provides a kind of control method of traffic lights, it is characterised in that including:
Step 101, determines the corresponding at least one setting time section of current point in time;
Step 102, obtains the average of automobile at least one setting time section into holding areas and enters quantity;
Obtain in setting time section described at least one by the holding areas by setting the appointed place of traffic lights to be controlled
Automobile averagely pass through quantity;Wherein, the time span of the setting time section is current red with traffic lights to be controlled
Lamp shows that duration and current green light show duration and identical;
Step 103, according to the average entrance quantity and described averagely by quantity, calculates in the designated area and waits
By the average waiting quantity of the automobile of the appointed place;And according to the average entrance quantity, described average by number
The time span of amount and setting time section, calculates average queuing duration of each automobile in the holding areas;
Step 104, the first predetermined threshold value is more than in the average waiting quantity, and the average queuing duration is more than second
During predetermined threshold value, controlling the current green light display duration of the traffic lights to be controlled increases preset duration, and controls described
The current red light display duration of traffic lights to be controlled reduces preset duration.
In the above embodiment of the present invention, reach to be controlled by obtaining in the corresponding multiple setting time sections of current point in time
The average of automobile in the corresponding holding areas of traffic lights enters quantity, and obtains in multiple setting time sections by waiting
Region by set the appointed place of traffic lights to be controlled automobile averagely by quantity, due to setting time section when
Between length and traffic lights to be controlled current red light display duration and green light display duration and it is equal, therefore, according to flat
Enter quantity, the average time span for passing through quantity and setting time section, you can calculate putting down for the automobile in holding areas
Quantity and average queuing duration are waited, accordingly, the first predetermined threshold value, and duration of averagely queuing up is more than in average waiting quantity
During more than the second predetermined threshold value, then illustrate that the green light display duration of traffic lights to be controlled is partially short, and red light display duration is inclined
Long, by controlling the current green light of traffic lights to be controlled to show, duration increases preset duration, and controls traffic to be controlled to believe
The current red light display duration of signal lamp reduces preset duration, and a large amount of automobiles in holding areas then can be when green light more long shows
Appointed place is passed through in long, the automobile quantity in holding areas is reduced, meanwhile, shorter red light display duration can make automobile
Only needed in holding areas quickly through appointed place by the wait of short period, so that more efficiently reduction traffic is gathered around
It is stifled.
Specifically, in one embodiment of the invention, the average row for calculating each automobile in the holding areas
Team's duration, including:
Average queuing duration of each automobile in the holding areas is calculated by equation below:
Wherein, W characterizes average queuing duration, and α is characterized and averagely entered quantity, and β is characterized averagely by quantity, and t is characterized and set
The time span of time period.
In one embodiment of the invention, described calculating in the designated area is waited by the automobile of the appointed place
Average waiting quantity, including:
The average waiting number waited in the designated area by the automobile of the appointed place is calculated by equation below
Amount:
Wherein, L characterizes average waiting quantity, and α is characterized and averagely entered quantity, and β is characterized and averagely passed through quantity.
Because same appointed place generally sets at least two mutual corresponding traffic lights, each traffic signals
Lamp can control the automobile passage situation on a direction, when the automobile negligible amounts that wait in holding areas passes through appointed place,
And each automobile average queuing duration it is smaller when, in order to ensure the automobile on other directions also can be in the friendship being correspondingly arranged
Quickly through appointed place under the guiding of ventilating signal lamp, in one embodiment of the invention, also include:In the average waiting quantity
When being less than the second predetermined threshold value less than the first predetermined threshold value, and the average queuing duration, the traffic signals to be controlled are controlled
The current green light display duration of lamp reduces preset duration, and controls the current red light of the traffic lights to be controlled to show duration
Increase preset duration.
In order that each automobile in holding areas can in the short period of time by specifying, one implementation of the present invention
In example, also include:The 3rd predetermined threshold value is less than in the average waiting quantity, and the average queuing duration is preset more than second
During threshold value, controlling the current green light display duration of the traffic lights to be controlled increases preset duration, and controls described to be controlled
The current red light display duration of traffic lights processed reduces preset duration.
In order to more clearly illustrate the embodiment of the present invention technical scheme, the present invention combine specific business scenario, with
An appointed place A on one highway of straight trip is provided with traffic lights B and hands over communication light C, and traffic lights B and friendship
Ventilating signal lamp C is correspondingly arranged, i.e. traffic lights B and traffic lights C corresponds to a holding areas b and holding areas c respectively,
The controllable automobiles travelled towards holding areas c by appointed place A by holding areas b of traffic lights B, traffic lights C
The controllable automobile travelled towards holding areas b by appointed place A by holding areas c, is specifically believed with traffic to be controlled here
The current red light display duration and current green light display duration of signal lamp B were as a example by 120 seconds, the technical side provided by the present invention
When case is controlled to traffic lights to be controlled, can specifically include following each step:
Step 201, determines the corresponding at least one setting time section of current point in time.
Step 202, obtains the average of automobile for entering holding areas b at least one setting time section for determining and enters number
Amount.
For example, the red light display duration of default setting traffic lights B and traffic lights C and green light display duration
It is 120 seconds.Current point in time is can first determine that, setting time section is determined according to current point in time.Specifically with current point in time
Include daily 5 points 2 58 minutes to 6: as a example by 6 points in afternoon, to can use setting time section, its time span is 240 seconds, with friendship
The red light display duration and green light of ventilating signal lamp B show duration and identical.The quantity of setting time section can combine actual industry
Business demand is rationally set, such as, first 7 days of current point in time can be set.By corresponding data acquisition and arrangement, the present invention is real
Apply in example specifically to get first 7 days in, 5 points of the average of the automobile for entering into holding areas for 58 minutes to 6: 2/enter number
Amount is as a example by 70.
Step 203, obtains at least one setting time section by holding areas b by setting specifying for traffic lights B
The average of the automobile of place A passes through quantity.
Similarly, the embodiment of the present invention specifically to get first 7 days in, 5 points 58 minutes to 6: 2/by holding areas b
It is as a example by 80 by quantity by the average of automobile for setting the appointed place A of traffic lights B.
Step 204, quantity is entered and average by the average waiting quantity of quantity calculating according to average.
Specifically, the embodiment of the present invention can calculate average waiting quantity by equation below:
Wherein, L characterizes average waiting quantity, and α is characterized and averagely entered quantity, and β is characterized and averagely passed through quantity.
Correspondingly, it is 7 that the embodiment of the present invention can calculate average waiting quantity.
Step 205, quantity, the average time span for passing through quantity and setting time section are entered according to average, are calculated each
The average queuing duration of automobile b in holding areas.
Specifically, the embodiment of the present invention can calculate average queuing duration especially by equation below:
Wherein, wherein, W characterizes average queuing duration, α characterize it is average enters quantity, β is characterized averagely by quantity, and t is characterized
The time span of setting time section.
Accordingly, a length of 21 seconds when the embodiment of the present invention can calculate average queuing.
Whether step 206, judge average queuing duration more than the second predetermined threshold value, and average waiting quantity is pre- more than first
If threshold value, if it is, performing step 207;Otherwise perform step 208.
Step 207, controlling the current green light display duration of traffic lights B to be controlled increases preset duration, and control is treated
The current red light display duration of control traffic lights B reduces preset duration.
In the embodiment of the present invention, the first predetermined threshold value, the second predetermined threshold value and preset duration can be needed with reference to practical business
Ask and the sample analysis of respective numbers determines that in a kind of mode in the cards, the first predetermined threshold value can be 5,
Two predetermined threshold values can be 15 seconds, preset duration can be 2 seconds.
By the technical scheme of the embodiment of the present invention, can make the automobile in the holding areas b corresponding to traffic lights B can
By holding areas b quickly through appointed place A.On the one hand, reduce in the b of holding areas and wait by the automobile of appointed place A
Quantity;Another convenience so that the automobile in the b of holding areas is only needed by the wait of short period by appointed place A.So as to
More efficiently reduction traffic congestion.
Whether step 208, judge average queuing duration less than the second predetermined threshold value, and average waiting quantity is pre- less than first
If threshold value, if it is, performing step 209;Otherwise, current business flow is terminated.
Step 209, controls the current green light display duration of traffic lights B to be controlled to reduce preset duration, and control is treated
The current red light display duration of control traffic lights B increases preset duration.
In this way, then may be such that traffic lights C under the control of related device, green light display duration increases preset duration,
Red light display duration reduces preset duration so that the automobile in the c of holding areas can be by holding areas c quickly through appointed place A.
It should be appreciated that quantity ought be averagely waited less than the 3rd predetermined threshold value, and average queuing duration is pre- more than second
If during threshold value, it is also possible to control the current green light of traffic lights B to be controlled to show that duration increases preset duration, and control to be controlled
The current red light display duration of traffic lights B processed reduces preset duration, and the 3rd preset duration can combine practical business scene
And the sample analysis of respective numbers determines.
As shown in figure 3, a kind of control device of traffic lights is the embodiment of the invention provides, including:
Determining module 301, for determining the corresponding at least one setting time section of current point in time;
Acquisition module 302, the automobile of holding areas is entered for obtaining at least one setting time for determining section
Average enter quantity;Obtain in setting time section described at least one and believed by setting traffic to be controlled by the holding areas
The average of the automobile of the appointed place of signal lamp passes through quantity;Wherein, the time span of the setting time section and traffic to be controlled
The current red light display duration of signal lamp and current green light show duration and identical;
Computing module 303, for according to the average entrance quantity and described averagely by quantity, calculating the specified area
The average waiting quantity by the automobile of the appointed place is waited in domain;And according to the average entrance quantity, described flat
By quantity and the time span of setting time section, average queuing of each automobile in the holding areas is calculated
Duration;
First control module 304, for being more than the first predetermined threshold value, and the average queuing in the average waiting quantity
When duration is more than the second predetermined threshold value, when controlling the current green light display duration increase of the traffic lights to be controlled default
It is long, and control the current red light of the traffic lights to be controlled to show that duration reduces preset duration.
As shown in figure 4, in one embodiment of the invention, described device also includes:Second control module 401, in institute
When stating average waiting quantity and being less than the second predetermined threshold value less than the first predetermined threshold value, and the average queuing duration, control is described
The current green light display duration of traffic lights to be controlled reduces preset duration, and controls working as the traffic lights to be controlled
Preceding red light display duration increases preset duration.
As shown in figure 5, in one embodiment of the invention, described device also includes:3rd control module 501, in institute
When stating average waiting quantity and being more than the second predetermined threshold value less than the first predetermined threshold value, and the average queuing duration, control is described
The current green light display duration of traffic lights to be controlled increases preset duration, and controls working as the traffic lights to be controlled
Preceding red light display duration reduces preset duration.
As shown in fig. 6, in one embodiment of the invention, the computing module 303, including:First computing unit 3031;Its
In,
First computing unit 3031, for calculating each automobile in the holding areas by equation below
Average queuing duration:
Wherein, W characterizes average queuing duration, and α is characterized and averagely entered quantity, and β is characterized averagely by quantity, and t is characterized and set
The time span of time period.
As shown in fig. 6, in one embodiment of the invention, the computing module 303, including:Second computing unit 3032;Its
In,
Second computing unit 3032, is waited by the finger for being calculated in the designated area by equation below
Determine the average waiting quantity of the automobile in place:
Wherein, L characterizes average waiting quantity, and α is characterized and averagely entered quantity, and β is characterized and averagely passed through quantity.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
A kind of computer-readable recording medium, including execute instruction are the embodiment of the invention provides, when the computing device of storage control
During the execute instruction, the storage control performs the control of the traffic lights provided in any one embodiment of the invention
Method.
A kind of storage control is the embodiment of the invention provides, including:Processor, memory and bus;
The processor and the memory are connected by the bus;
The memory, when the storage control runs, memory storage is described described in the computing device
Execute instruction, so that the storage control performs the controlling party of the traffic lights provided in any one embodiment of the invention
Method.
In sum, each embodiment of the invention at least has the advantages that:
1st, in one embodiment of the invention, reach to be controlled by obtaining in the corresponding multiple setting time sections of current point in time
The average of automobile in the corresponding holding areas of traffic lights enters quantity, and obtains in multiple setting time sections by waiting
Region by set the appointed place of traffic lights to be controlled automobile averagely by quantity, due to setting time section when
Between length and traffic lights to be controlled current red light display duration and green light display duration and it is equal, therefore, according to flat
Enter quantity, the average time span for passing through quantity and setting time section, you can calculate putting down for the automobile in holding areas
Quantity and average queuing duration are waited, accordingly, the first predetermined threshold value, and duration of averagely queuing up is more than in average waiting quantity
During more than the second predetermined threshold value, then illustrate that the green light display duration of traffic lights to be controlled is partially short, and red light display duration is inclined
Long, by controlling the current green light of traffic lights to be controlled to show, duration increases preset duration, and controls traffic to be controlled to believe
The current red light display duration of signal lamp reduces preset duration, and a large amount of automobiles in holding areas then can be when green light more long shows
Appointed place is passed through in long, the automobile quantity in holding areas is reduced, meanwhile, shorter red light display duration can make automobile
Only needed in holding areas quickly through appointed place by the wait of short period, so that more efficiently reduction traffic is gathered around
It is stifled.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply these entities or exist between operating
Any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements,
But also other key elements including being not expressly set out, or also include by this process, method, article or equipment are solid
Some key elements.In the absence of more restrictions, the key element limited by sentence " including ", does not arrange
Except also there is other identical factor in the process including the key element, method, article or equipment.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, skill of the invention is merely to illustrate
Art scheme, is not intended to limit the scope of the present invention.All any modifications made within the spirit and principles in the present invention,
Equivalent, improvement etc., are all contained in protection scope of the present invention.