Hi guys.
My program is a complicated mathematical algorithm, that assigns traffic to a network. This assignment needs a travel demand function. Here is my problem. when I use a simple demand function everything goes well and I get the results. But when I use a logarithmic function, which I should use, something weird happens: A loop that at first glance isn't related to the demand function type (and is in fact related to it mathematically) get stuck in a never-ending loop. And as algorithm is an iterative computation, it happens in the second iteration and not the first.
The logarithmic function is used in three parts of the code, which all three are called "Updating the Travel Time." The loop that the problem happens in, is at the end of the part "Step 2: The all-or-nothing Assignment". It is the "Do Until" one.
All the necessary files are added to this post as a .Zip file. The only necessary modification for you guys to run the code, is changing the input and output files addresses.
This problem is driving me crazy and I am losing my time because of it. It is very kind of you if you help me. I am really looking forward to your answers. Thank you so much.
Farrokh.
My program is a complicated mathematical algorithm, that assigns traffic to a network. This assignment needs a travel demand function. Here is my problem. when I use a simple demand function everything goes well and I get the results. But when I use a logarithmic function, which I should use, something weird happens: A loop that at first glance isn't related to the demand function type (and is in fact related to it mathematically) get stuck in a never-ending loop. And as algorithm is an iterative computation, it happens in the second iteration and not the first.
The logarithmic function is used in three parts of the code, which all three are called "Updating the Travel Time." The loop that the problem happens in, is at the end of the part "Step 2: The all-or-nothing Assignment". It is the "Do Until" one.
All the necessary files are added to this post as a .Zip file. The only necessary modification for you guys to run the code, is changing the input and output files addresses.
This problem is driving me crazy and I am losing my time because of it. It is very kind of you if you help me. I am really looking forward to your answers. Thank you so much.
Farrokh.