Skip to content

Commit

Permalink
Update test_simple_TSP.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
chkwon committed Apr 26, 2023
1 parent 8c5276c commit 4cf4506
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/test_simple_TSP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,23 @@ using LinearAlgebra
tour, cost = solve_tsp(M; algorithm=algo, init_tour=init_tour, firstcity = 3)
@test cost == 29
end


@testset "Some argument combinations" begin

tour, tour_len = TSPSolvers.solve_tsp(M; algorithm="LKH", INITIAL_TOUR_ALGORITHM="GREEDY", RUNS=5, TIME_LIMIT=10.0)
@test tour_len == 29

tour, tour_len = TSPSolvers.solve_tsp(M; algorithm="FarthestInsertion", do2opt=false)
@test tour_len == 29

tour, tour_len = TSPSolvers.solve_tsp(M; algorithm="SimulatedAnnealing", firstcity=3, steps=10, num_starts=3)
@test tour_len == 29

tour, tour_len = TSPSolvers.solve_tsp(M; algorithm="HGS", nbIter=100)
@test tour_len == 29


end

end

2 comments on commit 4cf4506

@chkwon
Copy link
Owner Author

@chkwon chkwon commented on 4cf4506 Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/82367

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 4cf45060116184d2e17cda9e1a90af51dce31e96
git push origin v0.1.0

Please sign in to comment.