Informatica 32 (2008) 289-291 289 The Modelling of Manpower by Markov Chains - A Case Study of the Slovenian Armed Forces Damjan Škulj, Vasja Vehovar and Darko Štamfelj University of Ljubljana, Faculty of Social Sciences E-mail: damjan.skulj@fdv.uni-lj.si, vasja.vehovar@fdv.uni-lj.si darko.stamfelj@fdv.uni-lj.si Keywords: manpower planning, Markov chains, controlled Markov chains Received: August 9, 2007 The paper presents a case study of manpower planning for the Slovenian armed forces. First, we identified 120 types of military segments (including civil servants). Next, administrative data were used to estimate the transitions between these segments for the 2001-2005 period. Markov chain models were then applied and 5-, 10- and 20-year projections were calculated. Various discrepancies were discovered between the projected structures of the military segments and the official targets. Finally, we addressed two optimisation questions: 'Which transitions would lead to the desired structure in five years' time?' and 'Which transitions would sustain the desired structure in the long run?'. A heuristic modelling approach was applied here, i.e. we used a simulation model with a specific loss function. To perform feasible simulations of the probabilities in a 120 x 120 matrix, only those transitions were simulated where experts had previously estimated that real measures existed to provide potential change (recruitment policy, regulation of promotion, retirement strategy etc). Povzetek: V članku je predstavljen primer načrtovanja kadrov v Slovenski vojski. 1 Introduction Efficient manpower planning is a crucial task of managing large organisations such as transportation or industrial corporations, the state administration or military systems. All of these systems comprise many segments of employees with specific roles and job descriptions. Skills needed to perform assigned tasks are usually acquired through special training or long work experience. Both a shortfall and a surplus of skilled staff can be costly and very inefficient. To prevent such difficulties, the future needs of personnel have to be predicted well in advance, while corresponding strategies to achieve the desired structure must be adopted. Knowledge about these processes is important for predicting the future development of the manpower structure in complex organisations. In large systems, such predictions are usually based on previous experience. However, knowledge gained from such experience is often difficult to apply without appropriate mathematical or statistical models and corresponding computational tools. Pending on the goals, various mathematical models can be applied in manpower planning. Obviously, the problems cannot be fully addressed by only using tools of the spread-sheet type. The choice depends on many factors, such as the size of the system being analysed, available knowledge of the processes that govern the system structure's dynamics, the methods available to control the processes and the ability to predict the consequences of actions concerning regulations. Moreover, the choice of the appropriate model often depends on its complexity. While complex models can supply very accurate results, they often require data that are not easy to collect, or parameters that may only be vaguely known, especially if a very large number of them have to be specified. Consequently, the reliability of the resulting outputs is then put in question. For very large systems, simpler and more robust models are therefore often a better choice. A good overview of the existing models used in workforce planning can be found in Wang (2005). For other references, also see Grinold and Marshall (1977), Price et al. (1980), Purkiss (1981), and Georgiu and Tsantas (2002). The most basic information that can be used to model manpower dynamics is the rate of transitions between different segments of the system, i.e. the transition probabilities. Transitions are usually consequences of either promotions, transfers between assignments or wastage and input into the system. Often transitions are controlled by certain rules that govern the system and cannot be arbitrarily changed. If this is the case, planning has to be especially careful since slight changes in policies can have considerable consequences on the future development of the manpower structure. In several cases, the models used to predict the future structure of a dynamic system are based on Markov chains and their derivatives, such as semi-Markov chains. Both are based on the assumption that the rules governing the system's manpower dynamics do not change very often and that future dynamics will follow patterns observed in the past. While classical Markov chains view segments as homogeneous, semi-Markov chains additionally involve the time a person has spent in a segment, of course at the cost of the model's simplicity and therefore the possibility to reliably estimate its parameters. A thorough description of many 290 Informatica 32 (2008) 289-297 D. Skulj et al. variations of Markov and some other manpower planning models can be found in Bartholomew et al. (1991), Vassiliou (1998) or Vajda (1978). Besides Markov models, other approaches to the problem are also possible, such as models based on simulations or system dynamics models (Wang, 2005). Applications of manpower models used in the specific case of military manpower planning can be found in Jaquette et al. (1977), Murty et al. (1995), Smith and Bartholomew (1988). In our particular case of modelling the structure of the Slovenian armed forces, the number of segments alone was relatively large. Together with other potential problems related to the data collection, these were the main reason against using the more complex semi-Markov chains. Moreover, transitions between segments are surprisingly complex where, besides recruitment, promotions and wastage from the system, many more transitions to other segments also occur such as transitions from military to administrative positions and vice-versa. Models based on Markov processes can be divided into the following groups, depending on the level of the structural control i.e. the ability to attain and maintain the desired structure: 1 Descriptive-predictive models. This group is mainly concerned with the development and analysis of a time homogeneous Markov model whose parameters are often based on historical observations. It can be used to predict the behaviour of a system in time. The models in this group have no intention to search for any kind of optimal control, but only give descriptions and forecasts. Several models of this group can be found in Bartholomew et al. (1991) or Price et al. (1980). In this paper, we use such a model in our first part to make predictions on the future development of the system. 2 Control theory models-normative models (Markov decision processes). This group tries to find optimal set of policies in order to minimise certain loss functions such as the cost of recruiting new workers or maintaining the existing structure. The basis of these models is the work of Howard (1960) and they can be found in Grinold and Stanford (1974), Zanakis and Maret (1981), Lee et al. (2001) or a very general treatment can be found in Li et al. (2007). Our approach to searching for the transitions leading to a desirable structure could be regarded as belonging to this class, although its key concern is to find any satisfactory policy rather than to select a particular policy satisfying some additional optimality conditions. While in the first part we use the classical descriptive-predictive model, the structural control part of the problem partly belongs to the class of control theory problems, although it has a very specific form and thus does not fit well in the context of controlled Markov chains or related models. The main specific point is that the choice of feasible policies is severely restricted by the Ministry of Defence and the problem, at least at this stage, is thus not in finding a policy that would satisfy some additional optimality criterion, but rather in finding any policy that leads to the desired structure of the system. A similar problem was theoretically studied by Antoncic (1990), but subject to less severe restrictions. We thus claim that our particular problem in fact belongs somewhere between the first and second groups of the above models, and that it requires some kind of a specific treatment. The problem we are dealing with thus mainly consists of two parts. In the first part we identify relevant segments and the transitions between them. The goal is to make predictions of the future sizes of the segments if the current transitions ruled the system's dynamics. This would likely be the case if no further regulations were implemented. In the second part we study the attainability and maintainability problem. We first identify transitions that could be regulated by the Ministry of Defence by setting appropriate measures and policies. Then we tried to modify them within the limits given by the Ministry in order to achieve the required structure. The problem is complex mainly because transitions that are not controllable represent a substantial part of the system's dynamics and are therefore the main cause of the large discrepancies between the projected and the required structures. Being ruled by mechanisms unknown to us, in the best case we can assume that they will remain roughly the same in the following years. To achieve the required structure, we must then appropriately set the controllable transitions. The estimated probabilities of the uncontrollable transitions are used as expectations of future transition probabilities and thus we effectively assume a deterministic model with two classes of transitions -fixed and controllable. The only objective at this stage is to find a sufficient set of transitions that would lead to the required structure. Among the models found in the existing literature none of them seemed quite appropriate for resolving this particular problem, although a modification of some existing analytical model to fit our framework is a promising direction for our further work. However, at this stage the approach using computer-based simulations proved to be sufficiently effective in producing satisfactory results. The idea is therefore to simulate a large number of randomly generated scenarios and pick those yielding a satisfactory structure after a given period. However, the implementation depends to a large degree on the particular specifics. The practical implementation of the approach to solving our problem also contains a web-based user application that was developed to allow non-mathematicians to change the parameters and analyse the consequences. The application's user interface is designed to be both user-friendly and flexible so that it allows practically unlimited possibilities in testing different scenarios. The results of testing are displayed simultaneously in real time. The application is available on-line and no programmes other than web browsers are needed to run it. The prediction part of the model is thus made in a fully interactive manner; however, the structural control part is still too complex to be implemented by ordinary THE MODELLING OF MANPOWER BY... Informatica 32 (2008) 289-297 291 users, especially because of the computational complexity which requires several manual adjustments during optimisation. In addition, the process of preparing the data to estimate the parameters is technically very demanding because it requires the combining of several software tools and is therefore not available in an automated form. The paper has the following structure: Section 2 contains a description of the method used with some mathematical background, Section 3 describes implementation of the method for calculating projections of the manpower structure of the Slovenian armed forces and the administration of the Ministry of Defence, while Section 4 presents the results. Conclusions are presented at the end. 2 Description of the method 2.1 Basic model The model used for manpower planning in the Slovenian armed forces and the administration of the Ministry of Defence is based on Markov chains. The description of the mathematical background of this and related models can be found in Bartholomew et al. (1991), Vassiliou (1998), and Grinold and Marshall (1977). The usual assumption of those models is that the system modelled consists of clearly defined segments and that the transitions between them are time-homogeneous and independent of history. To satisfy these requirements, the system must be sufficiently large to diminish the effect of random variations in time allowing transitions to be analysed on the aggregate level. Markov chains are used to model random processes evolving over time. A crucial assumption used is the Markov property which is best described by saying that the process is "memoryless", which means that its future states only depend on the present state rather than its history. Another assumption which is usually posed is that transition probabilities are time-homogeneous, which means that they are independent of time. Of course, these requirements are often not entirely fulfilled; however, omitting them would result in more general non-homogeneous models (see Vassliou (1981, 1998), Gerontidis(1994)) that require additional data to estimate the parameters. A sequence of random variables X1, X2, ..., Xn , ... is a Markov chain if every variable can assume any value from a set S = (i1, s2, ..., sm}, whose elements are called states. A particular realisation of the process is then a sequence of values from S. Mathematically we can describe the Markov property by requiring that P(Xn+1 = Sj I Xn = Si,„„ X1 = sk) = P(Xn+1 = Sj I Xn = s) = pij, where n denotes the time points. This means that the probability that the process will be in state Sj at time n+1, given that it is in state si at time n, is p