A method of controlling an Automatic Guided Vehicle (AGV) system having a plurality
of AGVs includes setting a moving path with task times of all the AGVs taken into
account, and controlling the AGVs according to the set moving path. The setting
the moving path includes calculating respective costs required for the AGVs to
perform a plurality of tasks and calculating a number of cases occurring by allocation
of each of the tasks to the AGVs. The setting the moving path also includes calculating
respective total costs required for the AGVs to perform a corresponding task or
corresponding tasks for all of the cases, determining a smallest and largest value
out of the respective total costs for each of the cases, and setting the moving
path of the AGVs according to the case having the smallest value.