Text this: Optimal inventory modeling of systems