Closed rohams closed 10 years ago
I have added the rand_break() function. For now it takes 3 inputs (# of trucks, # of stores, and minTour). I also tested it with different values. Note that my assumption is that (# of trucks)*(minTour) =< (# of stores)
Function Name: rand_breaks() Input: none
output: array of break points
rand_break() is implemented in our MATLAB model. It generates random break points for a solution given the number of trucks, number of stores and min tour size. New global variable, minTour needs to be defined. Some helper functions such as cumsum might also be needed.