We are presenting a general unified matrix framework for production-maintenance systems on a single machine. We have positional processing times and we propose a very general time dependent weighted maintenance system that includes most of the models from the literature.Several performance criteria are included and we show that a broad class of these problems can be modeled as assignment andrectangular assignment problems so that standard software can be utilized to determine their optimal solutions.