Summary of the invention
It is reserved that the present invention provides a kind of limited buffer dynamic capacity in having the bus body painting workshop that can reentry process
Method is turned back and is held by predicting that the car execution that will turn back can reentry the car processed on the station of process and change situation
Row can reentry the release probability of buffer resource corresponding to process, and the car that can reentry process during scheduled production for execution will turn back
The buffer area dynamic reserved capacity to be entered, enable will execute the car that can reentry process smoothly turn back enter it is limited slow
It rushes in area, is not detained in its current station, so that the probability blocked decline occurs in the station, reduce because of car contention
Buffer resource and lead to serious continuous influence of the choking phenomenon to production process, reduce what deadlock situation in production process occurred
Probability, to ensure that bus body painting Workshop Production process can be carried out smoothly.
To achieve the above object, the present invention, which solves the technical solution of technical problem, is:
Step 1: the Markov state transfer matrix based on bus body painting workshop historical production data is established, for predicting
Process Oper can be reentriedrmUCorresponding buffer area bu resource discharges probability, is ready for buffer pool size is reserved.Pass through analysis
The production history data in bus body painting workshop, process Oper can be reentried in the execution that will turn back of the interior car of unit time t ' by establishingj(j
=rmU) each station transition probability matrix Py(y=1...MU).Wherein
Indicate station WS at the beginning of unit time t 'U, kuThe car of upper processing does not change, but passes through
Cross unit time t ' later, the unchanged probability of the car processed on station.
Indicate station WS at the beginning of unit time t 'U, kuThe car of upper processing does not change, but passes through
Cross unit time t ' later, the probability that the car processed on station changes.
Indicate station WS at the beginning of unit time t 'U, kuThe car of upper processing changes, but passes through
Unit time t ' later, the unchanged probability of the car processed on station.
Indicate station WS at the beginning of unit time t 'U, kuThe car of upper processing changes, but passes through
Unit time t ' later, the probability that the car processed on station changes.
MUIndicate that car turned back execution reentries process Operj(j=rmU) the parallel number of stations of maximum;WithTable
In the case where showing that station processing car does not occur or changes at the beginning of unit time t ', when by unit
Between t ' later, the car processed on station changes, i.e., the station free time must occurs and to be stored in and can weigh unit time t ' is interior
Enter process OperrmUCar in corresponding buffer area bu is able to enter the station and is processed, meanwhile, buffer resource is released
It discharges therewith.Therefore, it is considered as in varied situations, unit time t ' internal buffer resource discharges probability.
Step 2: judging whether that starting executes limited buffer dynamic capacity method for obligating, having for process can be reentried when having
Limit buffer area bus body painting manufacture process proceeds to t moment, and production run state is as shown in Figure 1.If meeting following item
Part thens follow the steps 3, calculates buffer resource and discharges probability.
1. in t moment, from the non-completion car J for reentrying process sectionnrmTo enter process OperrmUBuffer area bu;
2. in t moment, process OperrmUBuffer area bu store car numberLess than buffer area bu maximum size BZSU,
AndI.e. in t moment, process OperrmUBuffer area residual capacity can only store a workpiece;
3. car execution of turning back can reentry production process Oper in t momentrmUStation be in occupied state;
4. process Oper can be reentried in t momentrmDStation on exist need to traverse the car that can reentry process section again;
5. on the basis of meeting above-mentioned 4 conditions, if process Oper can be reentriedrmUStation on the visitor that completes at first
Vehicle JUCompletion dateLess than production process Oper can be reentriedrmDIn the car J that completes at firstDCompletion time t2, then
Execute the subsequent operation of Network with Finite Buffers method for obligating.
Wherein, process Oper can be reentriedrmUIn the car that completes at first to enter the time of buffer area bd be t1(t1>=t), because
To be likely to occur choking phenomenon under conditions of buffer pool size is limited, so will appear car JUIt is still trapped in after completion to add
Situation on work station can reentry process OperrmUIn the car J that completes at firstUInto the time t of buffer area bd1It is more than or equal toProcess Oper can be reentriedrmDIn the car J that completes at firstDCompletion time be t2。
If being unsatisfactory for above-mentioned condition, without executing the subsequent operation of Network with Finite Buffers method for obligating.Such as Fig. 1 institute
Show.
Step 3: it will be turned back by prediction car and execute the situation of change for processing car on the station that can reentry process, i.e., it is slow
Area resource release probability is rushed, to judge whether its corresponding buffering area residual capacity is that the car reentried is reserved.
In t moment, t is predicted by Prediction of Markov method2Moment can reentry process OperrmUParallel station on most
The car J first to completeUPlace station WSU, kuThe changed probability P of the car of upper processing2(i.e. prediction t2Moment station WSU, kuAdd
The probability of work difference car) and station WSU, kuUpper processing car does not change, is constantly in by same car occupied state
Probability P1.Assuming that t2Moment station WSU, kuProcess different cars, it is known that in t2Before moment, process can be reentried by being stored in
OperrmUCorresponding buffering area bu microbus entrance can reentry process OperrmUStation WSU, kuIn, then buffer resource is also therewith
Release, in t2Moment can reentry process OperrmDIn the car J that completes at firstDWhen being prepared to enter into buffer area bu, buffer area bu exists
Residual capacity.Therefore, WSU, kuProcess the probability P of different cars2It is equivalent to the probability of buffer area bu resource release.It is pre- by acquiring
Survey t2Moment station WSU, kuProcess the probability P of different cars2And then obtain probability (the i.e. t of buffer area bu resource release2Moment,
Station WSU, kuProcess different car probability Ps2), and then dynamic judges whether buffer area bu residual capacity is car JDIt is reserved, it reduces
Because of car JnrmWith JDBetween fight for buffer resource and generate the probability of deadlock situation.
Step 3.1: the car for executing and can reentrying and processing on the station of process of being turned back by calculating car is changed general
Rate is obtained in the following t2Moment buffer area bu resource discharges probability.
The probability of car variation of the t moment in the interior station processing of unit time t ' is calculated by the method for probability statistics
a2。
S0=(a1, a2), (a1+a2=1) (2)
A in formula (2)1Indicate that the production process data by analysis since production until t moment, statistics obtain 0 to t
In the period at moment, station WSU, kuThe quantity of the upper processing unchanged unit time t ' of car was arrived with 0 in the time of t moment
Ratio comprising unit time t ' sum, i.e., the probability occupied in t moment, the interior station of unit time t ' by same car.
A in formula (2)2Indicate that the production process data by analysis since production until t moment, statistics obtain 0 to t
In the period at moment, station WSU, kuThe quantity of unit time t ' that upper processing car changes and packet in 0 to t moment time
The ratio of the sum of the t ' containing unit time, i.e., the probability occupied in t moment, the interior station of unit time t ' by different cars.
S0Indicate the probability vector of the car processed in t moment, the interior station of unit time t ' variation.
Pass through current t moment station WSU, kuThe probability vector S of the car variation of upper processing0It will calculate according to formula (3) in future
t2Moment station WSU, kuThe probability vector S of the car variation of upper processingv, according to required result (i.e. in t2Moment station WSU, kuOn
The probability vector S of the car variation of processingv) obtain process OperrmUIn the car J that completes at firstUThe station WS at placeU, kuIt is upper to add
The car of work does not change, is constantly in the probability P of occupied state1(i.e. prediction t2Moment, station WSU, kuThe probability of occupancy)
With station WSU, kuThe changed probability P of the car of upper processing2(i.e. prediction t2Moment, process OperrmUBuffer resource release
Put probability).
V indicates the sum in the time at t to t2 moment comprising unit time t ' in formula (3).
Step 3.2: showing that buffer resource discharges probability and determines that the car execution that will turn back can reentry work by step 3.1
Whether buffer area corresponding to sequence will reserve residual capacity for the car, and detailed process is as follows:
Process Oper can be reentried according to car execution of turning back has been found outrmUThe car J to complete at firstUThe station at place
WSU, kuThe changed probability of processing car (buffer resource release probability) judge buffer area bu residual capacity whether be
Process Oper can be reentriedrmDIn the car J that completes at firstDIt is reserved.
If P2≤P1, t2Moment station WSU, kuThe probability for processing different cars is lower, in t2Buffer area bu is deposited before moment
Process Oper can be reentried by putting car entrancermUStation WSU, kuProbability it is lower, buffer resource is difficult to discharge, if buffer area bu
Allow car JnrmInto, seize buffer area bu unique resource, cause reentry car JDCar with from the non-process section of reentrying
Car JnrmCompetition buffer resource fails and rests on its current station, causes the generation of choking phenomenon.If JDPlace can weigh
Enter process OperrmDThe car execution that all needs to turn back of other stations processing can reentry process OperrmU, then can cause continuously to hinder
The generation of phenomenon is filled in, and then causes deadlock situation (as indicated with 2).With JDBetween fight for buffer resource and cause deadlock situation, such as
Shown in Fig. 2, therefore, process Oper can be reentriedrmUThe residual capacity of place buffer area bu is car JDIt is reserved, meanwhile, from it is non-can
Reentry the car J of processnrmProcess section can be reentried by being prohibited from entering.
If P2> P1, indicate predicted, t2Moment station WSU, kuThe probability for processing different cars is higher, in t2Moment it
Preceding buffer area bu storage car entrance can reentry process OperrmUStation WSU, kuProbability it is higher, buffer resource is easy to get to releasing
It puts.Work as t2Moment can reentry process OperrmDIn the car J that completes at firstDWhen being prepared to enter into buffer area bu, buffer area bu has higher
There may be residual capacities.Therefore in t moment, process Oper can be reentriedrmUBuffer area need not reserved capacity, therefore allow come
From the non-car J for reentrying processnrmInto process section can be reentried.
Step 4: if deviation occurs in prediction, (i.e. prediction buffer area bu resource release probable deviation, leads to JnrmInto buffering
Area bu, seizes unique resource, causes still generate deadlock situation in production process), to avoid going out for prediction deviation
It is existing, process Oper can be reentried according to t momentrmDThe execution that need to be turned back of whole stations can reentry process OperrmUReentry car account for
Threshold alpha is set with rate, deviation compensation measure is added in the result of step 3.2.If step 3.2 show that prediction result allows to come
From the non-car for reentrying process into process section can be reentried, then t moment is calculated, process Oper can be being reentriedrmDIn, occupying should
(execution that needs to turn back again can reentry process Oper to the car of the station of processrmUCar) quantity and process can be reentried
OperrmDThe parallel number of stations M of the maximum for includingDRatio cc, meanwhile, generate range be (0,1) a random number r1。
If P2> P1And r1> α indicates the method by generating random number and threshold value comparison size, it is not necessary to step 3.2
Result carry out deviation compensation, then can reentry process OperrmUBuffer area bu residual capacity be not car JDIt is reserved.
If P2> P1And r1≤ α, indicates the method by generating random number and threshold value comparison size, and determination needs step
3.2 result carries out deviation compensation and (as makes up prediction and deviation, J occurnrmDo not enter buffer area bu, process Oper can be reentriedrmU
Buffer area bu residual capacity be car JDIt is reserved).
If (car execution of turning back can reentry process Oper when α=1rmDCar on station is needed all to traverse again and can be weighed
Enter process), when opening, buffer area dynamic is reserved, it is possible that bus body painting workshop only has car to turn back execution at current time
Process Oper can be reentriedrmUThere are residual capacity, other buffer pool sizes to be saturated for place buffer area.Meanwhile on each station
There is car.If prediction result there is deviation, the execution that causes to turn back can reentry process OperrmUBuffer area existing for residue
Parking stall is occupied from the non-car for reentrying process section, so that the buffer pool size that execution of turning back can reentry process section is equal
Reach saturation, then will appear, which can reentry the car of process section, all rests on its current location, and then deadlock situation occurs, such as schemes
Shown in 2.Random number r is judged if be added after the prediction result obtained at this time1With the relationship of α, r1Because of the shadow of its value range
It rings and it is caused centainly to be less than α, so even if deviation occurs in the prediction result at current time, r1< α also can make car that will turn back
The buffer area residual capacity corresponding to process of reentrying executed is bound to as car JDIt is reserved, and then avoid the prediction because of appearance
Deadlock situation caused by result error.
Wherein correlation model parameters and variable are provided that
MDIndicate that car execution of turning back can reentry process Operj(j=rmD) the parallel number of stations of maximum;
N indicates online processing car sum;
Indicate t moment, car JiProcess is executed in process flow FLqThe serial number of middle processing sequence, l ∈ 1 ... ..,
omi};
FLqThe process flow for indicating processing car is production process microbus according to processing flow sequence process processing work
The set of sequence;
omiIndicate car JiIn processing flow FLqSum of the microbus Jing Guo manufacturing procedure, counterweight be added with the process of work into
Row stored count, omi≥m;
M indicates the total process number of Painting Shop;
Indicate t moment car Ji, in its process flow FLqIt is middle to execute theA process, the process are that can reentry work
Sequence OperrmU, in the station WS of the processU, kuOn end process time.
Step 5: according to the judging result of step 3.2 and step 4, it is determined whether executive buffer is that the car reentried is reserved
Volume operation.
If showing that the car execution that will turn back can reentry process Oper by step 3.2 and step 4rmUFor the car of reentry
Reserved capacity, then from the non-car J for reentrying process sectionnrmProcess section can be reentried by not entering, will not occupy limited buffer
Residual capacity, remain in current station, therefore process Oper can be reentriedrmUCorresponding buffering area bu is to receive execution of turning back
The car J of process can be reentriedDIt is ready.When production process proceeds to t2When the moment, from process Oper can be reentriedrmDCar
JDCan enter can reentry process OperrmUIn corresponding buffer area bu, as shown in Figure 3.
If showing that the car execution that will turn back can reentry process Oper by step 3.2 and step 4rmUIt is not necessarily reentry
Car reserved capacity, then from the non-car J for reentrying process sectionnrmInto process Oper can be reentriedrmUCorresponding buffering area bu, such as
Shown in Fig. 4.
A kind of limited buffer dynamic capacity in having the bus body painting workshop that can reentry process proposed by the present invention is pre-
Stay method flow as shown in Figure 5.
Advantages of the present invention and effect: the car processed on the station of process can be reentried by predicting that car will turn back to execute
Change situation, that is, execution of turning back can reentry the release probability of buffer resource corresponding to process, executes during scheduled production
The car of process can be reentried by the buffer area dynamic reserved capacity to be entered of turning back, the car that can reentry process will be executed by enabling
Enough smoothly turn back enters in limited buffer, is not detained in its current station, so that blocking occurred in the station
Probability decline, reducing leads to serious continuous influence of the choking phenomenon to production process because car fights for buffer resource, reduces
The probability that deadlock situation occurs in production process, to ensure that bus body painting Workshop Production process can be carried out smoothly.
Specific embodiment
Step 1: the Markov state transfer matrix based on bus body painting workshop historical production data is established, for predicting
Process corresponding buffering area resource release probability can be reentried, is ready for buffer pool size is reserved.By analyzing bus body painting vehicle
Between production history data, process Oper can be reentried by establishing the car execution that will turn back in unit time t '=10j(j=rmU)
Each station transition probability matrix Py(y=1...3).
Step 2: judging whether that starting executes limited buffer dynamic capacity method for obligating, having for process can be reentried when having
Limit buffer area bus body painting manufacture process proceeds to the t=70 moment, and production run state is as shown in Figure 6.If meet with
Lower condition, then execute Network with Finite Buffers reservation operations, and buffer area bu is allowed to be to execute the car reserved capacity that can reentry process.
1. from the non-completion car J for reentrying process sectionnrmTo enter process OperrmUBuffer area bu;
2. t moment process OperrmUBuffer area bu store car numberLess than buffer area bu maximum size BZSU=
2, and
3. car is turned back, execution can reentry production process OperrmUStation be in by car occupied state;
4. production process Oper can be reentriedrmDStation on exist need to traverse the car that can reentry process section again;
5. car execution of turning back can reentry process Oper on the basis of meeting above-mentioned 4 conditionsrmUIn at first complete
Car JUCompletion dateLess than process Oper can be reentriedrmDIn the car J that completes at firstDCompletion time t2=
95Then start and executes limited buffer dynamic capacity reservation operations.Such as Fig. 6.
Step 3: it will be turned back by prediction car and execute the situation of change for processing car on the station that can reentry process, i.e., it is slow
Area resource release probability is rushed, to judge whether its corresponding buffering area residual capacity is that the car reentried is reserved.
At the t=70 moment, t is predicted by Prediction of Markov method2=95 moment, process OperrmUThe visitor to complete at first
Station WS where vehicle JUU, ku=WSU, 1Process the changed probability P of car2(i.e. prediction t2=95 moment buffer area bu resources
Discharge probability) and station WSU, 1Processing car does not change, is constantly in the probability P of occupied state1(i.e. prediction t2When=95
Carve the probability that station occupies).
Step 3.1: the car for executing and can reentrying and processing on the station of process of being turned back by calculating car is changed general
Rate is obtained in t2=95 moment buffer area bu resources discharge probability.
The probability a of car variation of the t moment in the interior station processing of unit time t ' is calculated by the method for probability statistics2
=0.48.
S0=(0.52,0.48)
al=0.52 indicates that the production process data by analysis since production until t moment, statistics obtain 0 to t
In the period at moment, station WSU, kuThe quantity of the upper processing unchanged unit time t ' of car was arrived with 0 in the time of t moment
Ratio comprising unit time t ' sum, i.e., in t moment, the interior station of unit time t ' is by the probability that same car occupies
0.52。
a2=0.48 indicates that the production process data by analysis since production until t moment, statistics obtain 0 to t
In the period at moment, station WSU, kuThe quantity of unit time t ' that upper processing car changes and packet in 0 to t moment time
The ratio of the sum of the t ' containing unit time, i.e., in t moment, the probability that the interior station of unit time t ' is occupied by different cars is 0.48.
S0=(0.58,0.42) indicates in t moment, the probability of the car variation of the interior station processing of unit time t ' to
Amount.
Pass through current t=70 moment station WSU, 1The probability vector S of the car variation of upper processing0=(0.52,0.48) according to
It calculates according to formula (3) in the following t2=95 moment station WSU, 1The probability vector S of the car variation of upper processingv=(0.54,0.46),
According to required result (i.e. t2Moment station WSU, kuThe probability vector S of the car variation of upper processingv=(0.54,0.46)), it obtains
Process OperrmUIn the car J to complete at firstUThe station WS at placeU, 1The car of upper processing does not change, is constantly in and accounts for
With the probability P of state1=0.54 (i.e. prediction t2=95 moment station WSU, 1The probability of occupancy) and station WSU, 1The car of upper processing
Changed probability P2=0.46 (i.e. prediction t2=95 moment buffer area bu resource release rates).Calculate probability vector SvProcess
It is as follows:
Find out (P1, P2)=(0.54,0.46).
V=3 indicates t moment to t2It include the sum of unit time t ' to round up in period at moment, wherein t=
70, t2=95, t '=10.
Step 3.2: showing that buffer resource discharges probability and determines that the car execution that will turn back can reentry work by step 3.1
Whether buffer area corresponding to sequence will reserve residual capacity for the car, and detailed process is as follows:
Process Oper can be reentried according to car execution of turning back has been found outrmUThe car J to complete at firstUThe station at place
WSU, 1The changed probability P of the car of upper processing2=0.46 (buffer resource release probability) judges the residue of buffer area bu
Whether capacity is that can reentry process OperrmDIn the car J that completes at firstDIt is reserved.
If P2≤P1, indicate predicted, work as t2=95 moment, which came from, can reentry process OperrmUAll stations at first
The car J of completionUThe station WS at placeU, 1The car of upper processing does not change, and buffer resource is difficult to discharge, then can reentry
Process OperrnUThe residual capacity of place buffer area bu is car JDIt is reserved, from the non-car J for reentrying processnrmDo not enter
Process section can be reentried, its current station is rested on.
If P2> P1, indicate predicted, work as t2=95 moment, which came from, can reentry process OperrmUAll stations at first
The car J of completionUThe station WS at placeU, 1The car of upper processing changes, and buffer resource is easily released.Work as t2When=95
Quarter can reentry process OperrmDIn the car J that completes at firstDWhen being prepared to enter into buffer area bu, buffer area bu has and higher may deposit
In residual capacity.Therefore at the t=70 moment, process Oper can be reentriedrmUBuffer area need not reserved capacity, therefore allow from non-
The car J of process can be reentriednrmInto process section can be reentried.
Step 4: if deviation occurs in prediction, deadlock situation still may be generated in production process, it is pre- to avoid
Deviation compensation measure is added in the appearance for surveying deviation in the result of step 3.2.If step 3.2 show that prediction result allows to come
From the non-car for reentrying process into process section can be reentried, then the t=70 moment is calculated, process Oper can be being reentriedrmDIn, it accounts for
With the car of the station of the process, (execution that needs to turn back again can reentry process OperrmUCar) quantity be 2, work can be reentried
Sequence OperrmDThe parallel number of stations M of the maximum for includingD=3, the ratio of the twoMeanwhile generate range be one of (0,1) with
Machine number r1=0.4.
If P2> P1And r1≤ α can then reentry process OperrmUBuffer area bu residual capacity be car JDIt is reserved.
If P2> P1And r1> α can then reentry process OperrmUBuffer area bu residual capacity will not be car JDIn advance
It stays.
Step 5: step 5: according to the judging result of step 3.2 and step 4, it is determined whether executive buffer is the visitor reentried
The operation of vehicle reserved capacity.
Work Oper can be reentried based on the execution that will turn back of car calculated by step 3.2rmUCorresponding buffering area residual capacity is attached most importance to
Reserved result (the P of the car entered2=0.46 < P1=0.54).From the non-car J for reentrying process sectionnrmBeing prohibited from entering can
It reentries process section and rests in its current station.Process Oper can be reentriedrmUResidual capacity can reentry process for the execution that will turn back
OperrmUCar JDIt is reserved.Production process proceeds to t2=95 moment completed process OperrmDThe car J of processingDIt turns back entrance
Process Oper can be reentriedrmUIn corresponding buffer area bu, as shown in Figure 7.