In scheduling, tardiness is a measure of a delay in executing certain operations and earliness is a measure of finishing operations before due time. The operations may depend on each other and on the availability of equipment to perform them. Typical examples include job scheduling in manufacturing and data delivery scheduling in data processing networks. In manufacturing environment, inventory management considers both tardiness and earliness undesirable. Tardiness involves backlog issues such as customer compensation for delays and loss of goodwill. Earliness incurs expenses for storage of the manufactured items and ties up capital.
Mathematical formulations In an environment with multiple jobs, let the deadline be d i {\displaystyle d_{i}} and the completion time be C i {\displaystyle C_{i}} of job i {\displaystyle i} . Then for job i {\displaystyle i}
lateness is L i = C i − d i {\displaystyle L_{i}=C_{i}-d_{i}} , earliness is E i = max ( 0 , d i − C i ) {\displaystyle E_{i}=\max(0,d_{i}-C_{i})} , tardiness is T i = max ( 0 , C i − d i ) {\displaystyle T_{i}=\max(0,C_{i}-d_{i})} . In scheduling common objective functions are C max , L max , E max , T max , ∑ C i , ∑ L i , ∑ E i , ∑ T i {\displaystyle C_{\max },L_{\max },E_{\max },T_{\max },\sum C_{i},\sum L_{i},\sum E_{i},\sum T_{i}} or weighted version of these sums, w i C max , w i L max , w i E max , w i T max , ∑ w i C i , ∑ w i L i , ∑ w i E i , ∑ w i T i {\displaystyle w_{i}C_{\max },w_{i}L_{\max },w_{i}E_{\max },w_{i}T_{\max },\sum w_{i}C_{i},\sum w_{i}L_{i},\sum w_{i}E_{i},\sum w_{i}T_{i}} , where every job comes with a weight w i {\displaystyle w_{i}} . The weight is a representation of job cost, priority, etc. In a large number of cases the problems of optimizing these functions are NP-hard.
References
