rohams / capstone

Capstone project
0 stars 0 forks source link

rand_breaks() #2

Closed rohams closed 10 years ago

rohams commented 10 years ago

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.

shichan-official commented 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)