Add an example that illustrates how to use a delay equation for both an optimization and simulation problem.