The dynamic traveling purchaser problem