# Incremental Computation of Resource-Envelopes in Producer-Consumer Models

## Abstract

Interleaved planning and scheduling employs the idea of extending partial plans by regularly heeding to the scheduling constraints during search. One of the techniques used to analyze scheduling and resource consumption constraints is to compute the so-called *resource-envelopes*. These envelopes can then be used to derive effective heuristics to guide the search for good plans and/or dispatch given plans optimally. The key to the success of this approach however, is in being able to recompute the envelopes incrementally as and when partial commitments are made. The resource-envelope problem in producer-consumer models is as follows: A directed graph \(\mathcal{G}=\langle \mathcal{X}, \mathcal{E} \rangle\) has \(\mathcal{X}=\{X_0, X_1 \ldots X_n\}\) as the set of nodes corresponding to events (*X* _{0} is the “beginning of the world” node and is assumed to be set to 0) and \(\mathcal{E}\) as the set of directed edges between them. A directed edge *e* = 〈*X* _{ i }, *X* _{ j } 〉 in \(\mathcal{E}\) is annotated with the simple temporal information [*LB*(*e*), *UB*(*e*)] indicating that a consistent schedule must have *X* _{ j } scheduled between *LB*(*e*) and *UB*(*e*) seconds after *X* _{ i } is scheduled (*LB*(*e*) ≤ *UB*(*e*)). Some nodes (events) correspond physically to production or consumption of resources and are annotated with a real number *r*(*X* _{ i }) indicating their levels of production or consumption of a given resource. Given a consistent schedule *s* for all the events, the total production (consumption) by time *t* is given by *P* _{ s }(*t*) (*C* _{ s }(*t*)). The goal is to build the envelope functions \(g(t) = max_{\{s \mbox{is a consistent schedule}\}} (P_s(t) -- C_s(t))\) and \(h(t) = min_{\{s \mbox{is a consistent schedule}\}} (P_s(t) - C_s(t))\). In this paper, we provide efficient incremental algorithms for the computation of *g*(*t*) and *h*(*t*), along with flexible consistent schedules that actually achieve them for any given time instant *t*.

## Keywords

Bipartite Graph Vertex Cover Production Event Distance Graph Partial Plan## Preview

Unable to display preview. Download preview PDF.

## References

- 1.Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to Algorithms, Cambridge, MA (1990)Google Scholar
- 2.Laborie, P.: Algorithms for Propagating Resource Constraints in AI Planning and Scheduling: Existing Approaches and New Results. In: ECP 2001 (2001)Google Scholar
- 3.Muscettola, N.: On the Utility of Bottleneck Reasoning for Scheduling. In: AAAI 1994 (1994)Google Scholar
- 4.Muscettola, N.: Computing the Envelope for Stepwise-Constant Resource Allocations. In: Van Hentenryck, P. (ed.) CP 2002. LNCS, vol. 2470, p. 139. Springer, Heidelberg (2002)CrossRefGoogle Scholar
- 5.Smith, D., Frank, J., Jonsson, A.: Bridging the Gap Between Planning and Scheduling. Knowledge Engineering Review 15(1) (2000)Google Scholar
- 6.Nguyen, X., Kambhampati, S.: Reviving Partial Order Planning. In: IJCAI 2001 (2001)Google Scholar