used stochastic programming to develop the model that maximises the number of completed jobs in a given horizon; and to minimise the expected reserved manpower and any shortages considered the analysis of delayed renewal process and a delayed alternating renewal process with exponential times to failure from a bayesian viewpoint