fixed optimizer and added a member to Landmark class
This commit is contained in:
@@ -79,16 +79,16 @@ def test4(coordinates: tuple[float, float]) -> List[Landmark]:
|
||||
|
||||
|
||||
test = landmarks_short
|
||||
test.append(finish)
|
||||
|
||||
test.insert(0, start)
|
||||
|
||||
test.append(finish)
|
||||
|
||||
max_walking_time = 4 # hours
|
||||
|
||||
visiting_order = solve_optimization(test, max_walking_time*60, True)
|
||||
visiting_list = solve_optimization(test, max_walking_time*60, True)
|
||||
|
||||
|
||||
return len(visiting_order)
|
||||
return visiting_list
|
||||
|
||||
|
||||
test4(tuple((48.834378, 2.322113)))
|
||||
test4(tuple((48.8795156, 2.3660204)))
|
Reference in New Issue
Block a user