• 沒有找到結果。

Dynamic scheduling of elevator systems over hybrid Petri net/rule modeling

N/A
N/A
Protected

Academic year: 2021

Share "Dynamic scheduling of elevator systems over hybrid Petri net/rule modeling"

Copied!
6
0
0

加載中.... (立即查看全文)

全文

(1)

Proceedings ofthe 1998 IEEE

International Conferenice on Robotics & Automation Leuven, Belgium * May 1998

Dyannnic Scheduling of Elevator Systems over

Petri Net/Rule Modeling

Yan-Hau Huang

and

Li-Chen Fu

Department

of

Computer Science and Information Engineering

National Taiwan University, Taipei, Taiwan,

R.O.C.

Abstract

In this paper, a hybrid model of a multiple elevator system is proposed, consisting of a timed place Petri net (TPPN) moldel and a set of control rules imple- mented via the so-called control places in the TPPN model. The Petri net model is a highly modulized structure, whose constituent modules can be classi- fied into four types: Basic Movement Module, Load- ing/Unloading Module, Direction Reversing Module, and Call Management Module. The whole complete model is a combination of the copies of the above four modules. Since the firing sequences of the TPPN equate the evolution of the modeled system, they can be regarded as a schedule. A dynamic scheduling strategy is proposed to obtain the desirable sched- ule. A new concept of control places is also intro- duced in the proposed model so as to make the model- ing more precise and to reduce the reachability graph more efficiently. To show the feasibility of the pro- posed method, an emulator of the elevator system is constructed for demonstration.

1

Introduction

An elevator system is used to supervise multiple elevators and to ensure that they are operated effi- ciently. The elevator system must decide which of several elevator cars should respond to a call made by passengers, in order t o provide the highest possi- ble level of services. To build a good elevator system for solving the elevator scheduling problem, we need to build an elevator model first to represent the co- operation of multiple elevators. Petri net has evolved into an elegant aind powerful graphical modeling tool for asynchronous, concurrent event-driven system and, therefore, is chosen here as a suitable modeling tool.

However, the elevator system is usually involved with human behaviors and preferences. Very often,

there may not exist an optimal scheduling solution and, hence, the control system must be flexible enough t o handle all possibly incoming situation. In view of this, a hybrid Petri net model is thus introduced in this paper t o serve the purpose, i.e., besides the con- ventional timed place Petri net model, several heuris- tic rules and control places are introduced to enrich the flexibility of the aggregate model. Specifically speaking, these additional rules in the model will af- fect the general behavior of the Petri net through di- rect adding/removing of tokens in the control places. Upon the occurrence of an external event, the model will search for the feasible rules t o adjust the marking of the resulting Petri net, whereby the hybrid model will run properly to produce an adequate scheduling result to handle that situation for service requirement. Petri net [l, 2, 3, 4, 51 is a graphical and math-

ematical modeling tool applicable to many systems. They are promising for describing and studying infor- mation processing systems that are characterized as being concurrent, asynchronous, distributed, parallel, nondeterministic, and/or stochastic. Petri net is use- ful tool for modeling [6, 71, simulation, and scheduling

discrete event systems such as flexible manufacturing systems.

There are researchers who proposed some colored Petri net to model real-time system and used the ele- vator system as examples [8, 91. But these models are only for one elevator and are in lack of the coordinator part for a whole elevator group control system. Due to the fast development of computer technology, inte- grated circuit(1C) and micro-computer are widely used in modern elevator system. The computer technology introduces the artificial intelligence(A1) technique into the elevator group supervisory control system

[lo,

111.

Moreover, the fuzzy control logics [14] and expert sys- tems are also used to analyze the traffic pattern and to predict the possibly incoming call requests [11, 12, 131.

(2)

operaloan place slalus place conlrol place

Figure 1: Types of places

tems in the context of elevator system control is an indispensable trend.

2

Modeling and Scheduling

2.1

Systematic Modeling

Problem Description

In the elevator system, there are two types of calls. The hall call is given through buttons on the hall of the building, and the car call is given in the elevator by the passengers. An elevator system has a pair of hall call buttons on each floor, one for up hall call and

the other for down hall call. As soon as a hall call

button is pressed, the elevator system must register the hall call, and selects and assigns an elevator to serve the hall call. After serving the hall call, the passenger should press car call button to register his destination floor and the elevator must move up/down to stop at destination floor. When all calls are served, the elevator stops and waits for the next call to arrive, and then repeat the above operation again.

In this thesis, we select the T P P N to model our elevator system as has been mentioned in the previous chapter. In this TPPN model, all the places can be classified into three categories listed below, as shown in Fig 1:

1) Operation places: These places are timed

places. A token at an operation place repre- sents a specific operation is now being per- formed.

2) Control places: Control places are used as

an interface between the environment and the kernel, which represent the signals received from the world butside the elevator system or from the elevator system.

3) Status places: These places are used to

record some specific information about the current elevator system.

Due to the complexity of describing various kinds of behaviors of a groups of elevators, it is hard to con- struct the Petri net model directly. Therefore, we first

Figure 2: Basic Ascending Movement Module

Figure 3: Basic Movement Module

observe the architecture of the elevator hardware and analyze the activities of each elevator,and then build four kinds of macro modules so that the final Petri net model can be constructed from these macro modules.

Basic Movement Module

The basic movement module is the most fundamen- tal part of the Petri net model of a group of elevators. It describes the movement activities of each elevator between floors. The Petri net module for up-movement is shown in Fig 2. Fig 3 shows the combined module of

up-movement and down-movement. By repeating this strategy for every suffix i, we can eventually construct the full movement model of an elevator car. Then, by adding a prefix serial number, we can represent differ- ent elevators. All places without suffix represent that they are shared by this elevator. Control places in this module and the following module will be explained in the section of Control Rules detailedly.

Loading/Unloading Module

The Loading/Unloading Module describes the event that passengers get into or get out of the elevator car. An elevator must be parked a t the floors designated by the car calls, but it may not stop at the floors

(3)

step 1 step2 step3 step4

Figure 4: Loadin,g/Unloading Module with firing steps

Figure 5: Direction Reversing Module

designated by thie hall calls for some reasons. The Loading/Unloading Module is shown in Fig 4. Places in different modules but with the same notations rep- resent that they are shared by those modules. One can interconnect the different modules via the shared places.

Direction Reversing Module

Direction Eleversing Module describes the tim- ing to reverse the moving direction of an elevator car, which is shown in Fig 5. We explain the notations as follows:

1) on-duty, represents that the elevator is on

duty. Once the scheduling system decides to dispatch an elevator car to respond to an up- hall call, it is not reasonable to dispatch this elevator to serve another down-hall call be- fore sending the passenger(s) who has(have) made the up-hall call to his destination. This control place is thus needed to inform the scheduling system to prevent such a case.

2) off-duty, is imainly used t o switch the status of an elevator from busy to free. "off-duty" means that there is no higher car call request- ing for service when the elevator i s ascend- ing, and there is no lower car call requesting

Figure 6 : Call Management Module

for service when the elevator is descending. When an elevator is off duty, this is a suit- able timing for the elevator car to reverse its moving direction.

3) free, represents that this elevator has no car

call now. It can reverse its direction if neces- sary.

4) busy, represents that this elevator is busy

serving some calls. If a token is placed in this place, this elevator is denied t o reverse its direction.

To check whether an elevator car can reverse its moving direction, we must check all hall calls and car calls in its moving direction. In order t o simplify the model, we use control places "on-duty" and "off-duty" to replace the checking model.

Call Management Module

Call Management Module is mainly used to manage the car calls and the hall calls. When the system finds that service of some hall call may be a better choice, it is a good opportunity to cancel the service and re-assign the hall call t o another el- evator car. We show the Call Management Module in Fig 6 . To make distinction with other modules shown above, there will be no prefix serial number with "uphall-button-i"

,

" downhall-button-?

,

"uphc-i"

and " d o w n h c i " places. These four kinds of places are common places for all elevators. Through these places, different elevator models will be linked together. An example of this will be shown in the next section.

A Simple Example : Modeling w i t h Modules In Fig 7, we show a simple example. There are

(4)

.

LN E Y J _ I

i hallcall U hancali

.

h a l l d l

r- --

U - h a n d - -

Figure 7: A simple example of three elevators in a building with four floors

example. The rectangles denoting "up" and "down" represent the Basic Movement Module, the rectangles denoting "reverse" represents the Direction Reversing Module, and the rectangles denoting "L/U" represents the Loading/Unloading Module. But the Call Man- agement Module consists of two kinds of rectangle, re- spectively, denoting "car call" and "hall call". The circle, "floor", represents a floori place for some i .

We use the place floor-i t o connect the Basic Move- ment Module, the Loading/Unloading Module, the Di- rection Reversing Module and the Call Management Module. Similarly, we use places "hall call" to inte- grate different elevators into a group.

2.2

Rules of the Model

To combine the rules and Petri net model, we pro- pose a new architecture to achieve our purpose. We use the control places mentioned previously as an in- terface between the rules and the Petri net model.

Control Rules and Control Places

Rule 1) Assign/remove tokens to or from Move-ticket :

When the system predict that a parked elevator car will start to move up/down from floori, the system will assign a token to the corresponding place up-tk-i/down-tk-i. When the system resets an improper hall call assignment which affects the previous prediction, the system will remove tokens from the corresponding places up-tk-i/down-tk-i.

When there is no more car call or hall call as- signment along the current moving direction of

a still busy elevator, i.e. its assignment has not been serviced yet, the system will assign a token

Rule 2) Assign tokens to D u t y :

to the place off-duty to indicate that the elevator, after its assignment is serviced, is allowed to re- verse its moving direction. When there is any call assignment to a free elevator, the system will as- sign a token to the place on-duty to indicate that the elevator is busy and not allowed to reverse its moving direction now.

Rule 3) Assign/remove tokens to orfrom But-

t o n :

When a hall/car button is pressed and that call has not been registered, the system will assign a token to the corresponding place.

Rule 4) Assign/remove tokens to or from Can- celed-event :

When the system finds an assignment better than the one predicted previously, the system will as- sign a token to the corresponding place can- celservice-i t o cancel the previous assignment. But when there is no token in the corresponding place no-car-call-i referring to Fig 6, the system will immediately remove the token of the place cancelservice-z .

Another advantage of taking control places is their "flexibility". To adapt to various traffic conditions and different performance criteria, we can elaborately as- sign the necessary tokens to the control places and guide the evolution of the Petri net model to suit our need. In other words, we can put the constraints to the Petri net by means of the control places so that the undesired firing sequence will never be enforced in the reachability graph.

2.3

Dynamic Scheduling

Problem Definition

In this thesis, we want to generate the real-time schedule of an elevator system. The scheduler has to consider many factors concerning both of the current and the future states of the elevator system, and it will try to minimize the passengers' average waiting time, the long wait probability (the probability for a passenger to wait long time), the riding time, the long riding probability, and power consumption.

Strategy

We propose an event-driven elevator system to han- dle every event of an elevator system. Our events in- clude hall calls, car calls, end-of-loading and tick. Hall

calls, car calls and end-of-loading are introduced in

(5)

update wdh tick schedule

I r

Figure 8: Block diagram of the dynamic scheduling.

Figure 9: Flow of the hall call assignment.

triggered every fixed time interval, say, a second

,

by the system clock. Here, we also use tick as the time

unit for tracing the transition of firings of our TPPN model. The block diagram of the system is shown in Fig 8. -

To provide satisfactory performance, we embed the sense of satisfaction of passengers into our elevator sys- tem, estimate detailedly the cost by simulation over our Petri net model, and refine the dispatching by an refinement algorithm.

C o s t Functions

For passengers, when the waiting time exceeds the endurable limit, the cost will grow rapidly. And, when the riding time exceeds the reasonable limit, the pas- sengers may lost their patience. We try t o simulate the real circumstance of elevator system by estimating cost with some accumulative cost functions. We take waiting time, riding time, and power consumption as parameters of our cost estimation. In order to reduce the probabilities of unendurable long waiting or un- reasonable long riding, the cost of waiting is piecewise linearly increasing, with time, and the cost, of riding is considered with both the riding time and the moving distance. We define a aggregate weight cost :

cost = waiting cost

+

riding cost

+

power cost. Hall Call Assignment

In our system, when a hall call occurs, we first as- sign the hall call to an elevator randomly. Then, we

Resuns 818 M M I ~

N o i 1 - f Modifled = true

Moddied 1s true 7

Figure 10: Flow of the refinement algorithm.

simulate the consequence of the assignment by evolv- ing from the current marking t o a goal marking over

our Petri net model, and record the total evolution cost. After that, we assign the hall call to another ele- vator and repeat the above steps. After the exhausted simulations, we choose the elevator with the minimum cost as our preferable dispatching. Fig 9 shows the flow of the hall call assignment.

Refinement

When any of the aforementioned events occurs, the prediction made in hall call assignment should be up- dated, and the dispatch should be updated as well. To resolve the problem, we first make an implicit as- sumption that, whenever an event occurs, the influ- ence to the optimality of the previous schedule should be local, i.e., the previous schedule should not be far from the optimal schedule. Thus, we try to correct our schedule to approach the optimal schedule. However, such assumption may not adequate, but it is hardly possible t o schedule the whole system again in a real- time system. Hence, we propose an algorithm that focuses on the solution set near our previous schedule to search for a refined one. Fig 10 shows the flow of the refinement algorithm. Since the hall call assign- ment offers us a local optimal dispatching, it is a good idea t o refine the dispatching rather than t o perform a global search. The algorithm is efficient and economic, because it only takes constant memory and occupies little CPU times. Such desirable performance can be observed in the simulation results.

Flow of Dynamic Scheduling

Fig 11 shows the flow of dynamic scheduling. To

approach the goal of real-time dynamic scheduling, we propose an event-driven dynamic scheduling strategy.

(6)

Figure 11: Flow of dynamic scheduling.

To reflect the nature of human’s satisfaction about an elevator service, we choose accumlative cost functions. The cost functions can help t o reduce the probability of long waiting time efficiently. The hall call assign- ment method computes the precise cost by simulation over our T P P N model, and the refinement algorithm is used t o reschedule the elevator dispatches easily and efficiently.

3

Conclusion

In this thesis, we proposed a systematic Petri net based modeling for an elevator system. The objective of Basic Movement Module is to model the trajecto- ries of an elevator moving from one floor to another. The Loading/Unloading Module is used t o deal with call states and activities of loading/unloading. The Direction Reversing Module is designed to handle the suitable timing to reverse the moving direction of an elevator. And the Call Management Module is used t o manage the hall calls and car calls, and to integrate different elevators into a group. In these modules, the control places are utilized to simplify the complexity of the Petri net model, and the control rules are used to satisfy human nature and to approach the goal of efficiency.

To obtain an efficient schedule, we propose an event driven dynamic scheduling strategy, and correspond- ing algorithms. The strategy helps us to handle an elevator system with insufficient information and un- certain events. We estimate the cost of dispatching by Hall Call Assignment Method. The assignment method precisely computes the cost over our T P P N model. And the refinement algorithm is simple and efficient t o refine our schedule in a real time system.

References

[l] C. A. Petri, ”Kommunikation mit Automaten,” Ph.D. Dissertation, University of Bonn, Bonn, West-Germany, 1962.

[2] James L. Peterson, ”Petri nets,” Comput. Sur- veys, vo1.9, Sep. 1977.

[3] James L. Peterson, Petri Net Theory and the

Modeling of Systems, Prentice-Hall, INC., Engle-

wood Cliffs, N.J. 07632, 1981.

[4] T . Murata, ”Petri Nets : Properties, Analysis and Applications,” Proc. IEEE, ~01.77, N0.4, pp.541- 580, Apr. 1989.

[5] Richard Zurawski and MengChu Zhou, ”Petri Nets and Industrial Applications: A Tutorial,”

IEEE Trans. on Industrial Electron., vo1.41,

pp.567-583, Dec. 1994.

[6] Chin-Jung Tasi, Li-Chen

Fu

and Yung-Jen Hsu,

” Modeling and Simulation for Flexible Manufac-

turing Systems Using Petri Net,” 2nd Int. Conf.

on Automat., vo1.4, pp.31-38, 1992.

[7] Chu-Hui Lin and Li-Chen

Fu,

”Petri Net Based Dynamic Scheduling of an Elevator System,”

IEEE Int. Conf. on Robotics and Automat., vol.1,

[8] R. K. Guha, S. D. Lang, M. Bassiouni, ”Software Specification and Design Using Petri Nets,” Proc. 4th Int. Workshop on Software Specification and

Design, pp. 225-230, 1987.

[9] F. S. Etessami, G. S. Hura, ”Rule-Based De- sign Methodology for Solving Control Problems,”

IEEE 7kans. on Software Engineering, ~01.17,

no& pp. 274-282, 1991.

[lo] N. Kameli, K. Thangavelu, ”Intelligent Elevator Dispatching System,” A I Expert, pp. 32-37, Sep. 1989.

[ll] H. Aoki, K. Sasaki, ”Group Supervisory Control

System Assisted by Artificial Intelligence,” Eleva-

tor World, pp. 70-80, Feb. 1990.

[12] S. Tsuji, M. Amano, S. Hikita, ”Applica- tion of the Expert System t o Elevator Group- Supervisory Control,” IEEE 5th Conf. of Am’tifi-

cal Intelligence Applications, pp. 288-294, 1989.

[13] T. Tobita, H. Inaba, K. Yoneda and T. Ueshima, ”An Elevator Characterized Group Superviosry Control System,’’ IEEE IECON’SI, pp. 1972- 1976, 1991.

[14] Chang Bum Kim, Kyoung A. Seong, Hyung Lee- Kwang, Jeong 0. Kim, and Yong Bae Lim, ” A

Fuzzy Approach to Elevator Group Control Sys- tem,” IEEE Trans. Syst. Man Cybern., vol. 25. NO. 6, pp. 985-990, Jun. 1995.

數據

Figure  1: Types of  places
Figure 5:  Direction  Reversing Module
Figure  7:  A  simple  example  of  three  elevators  in  a  building  with  four floors
Figure 9:  Flow  of  the hall  call  assignment.
+2

參考文獻

相關文件

The focus of this paper is to propose the use of task structures for modeling knowledge-based systems at the requirements specification level, and the use of high-level Petri nets

6 《中論·觀因緣品》,《佛藏要籍選刊》第 9 冊,上海古籍出版社 1994 年版,第 1

The first row shows the eyespot with white inner ring, black middle ring, and yellow outer ring in Bicyclus anynana.. The second row provides the eyespot with black inner ring

The prototype consists of four major modules, including the module for image processing, the module for license plate region identification, the module for character extraction,

• helps teachers collect learning evidence to provide timely feedback & refine teaching strategies.. AaL • engages students in reflecting on & monitoring their progress

Robinson Crusoe is an Englishman from the 1) t_______ of York in the seventeenth century, the youngest son of a merchant of German origin. This trip is financially successful,

fostering independent application of reading strategies Strategy 7: Provide opportunities for students to track, reflect on, and share their learning progress (destination). •

Strategy 3: Offer descriptive feedback during the learning process (enabling strategy). Where the