Text this: Optimization of discrete time systems