Skip to content

Commit

Permalink
update error message for tsp example to the correct solver names
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonSering committed Jan 6, 2025
1 parent bc04bad commit 2570635
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapid_solve"
version = "0.1.5"
version = "0.1.6"
edition = "2021"
license = "MIT"
description = "This library provides a metaheuristic framework for solving combinatorial optimization problems."
Expand Down
11 changes: 10 additions & 1 deletion src/examples/tsp/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,14 @@ fn main() {

fn print_usage(program_name: &str) {
eprintln!("Usage: {} <solver> <tsplib_file>", program_name);
eprintln!(" <solver>: basic | take_first");
eprintln!(
" <solver>: \n\
- basic_local_search\n\
- take_first_local_search\n\
- parallel_local_search\n\
- threshold_accepting\n\
- simulated_annealing\n\
- tabu_search\n\
- parallel_tabu_search\n"
);
}

0 comments on commit 2570635

Please sign in to comment.