A GENERAL MODEL AND ALGORITHM FOR THE DYNAMIC TRAFFIC ASSIGNMENT PROBLEMS