dynamic programming code that is separate from the core queueing network code