Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeonSering/rapid_solve
/ functions
Functions
144 in github.com/LeonSering/rapid_solve
⨍
Functions
144
◇
Types & classes
48
↓ 52 callers
Method
objective_value
Get a reference to the [`ObjectiveValue`].
src/objective/evaluated_solution.rs:32
↓ 34 callers
Method
unwrap
Unwraps the [`TspTour`] from this [`TspTourWithInfo`].
src/examples/tsp/tsp_tour_with_info/mod.rs:35
↓ 22 callers
Method
iter
Returns the entries of the objective vector.
src/objective/objective_value.rs:26
↓ 21 callers
Method
solve
(&self, initial_solution: S)
src/heuristics/tabu_search/mod.rs:143
↓ 16 callers
Method
get_nodes
Returns the `nodes` of the tour.
src/examples/tsp/tsp_tour.rs:77
↓ 15 callers
Method
evaluate
Consumes the solution, computes its [`ObjectiveValue`], and returns both as [`EvaluatedSolution`].
src/objective/mod.rs:43
↓ 11 callers
Method
get_distance
Returns the distance between two nodes.
src/examples/tsp/tsp_instance.rs:23
↓ 10 callers
Method
unwrap
Unwrap the solution.
src/objective/evaluated_solution.rs:37
↓ 9 callers
Function
build
Builds a [`TabuSearchSolver`] for the TSP. The neighborhood is the 3-opt neighborhood, i.e., the neighborhood that consists of all tours that can be o
src/examples/tsp/solvers/tabu_search.rs:103
↓ 9 callers
Method
get_number_of_nodes
Returns the number of nodes in the instance.
src/examples/tsp/tsp_instance.rs:28
↓ 9 callers
Method
neighbors_of
( &'a self, tour: &'a TspTour, )
src/examples/tsp/neighborhood.rs:26
↓ 9 callers
Method
solution
Get a reference to the solution.
src/objective/evaluated_solution.rs:27
↓ 7 callers
Method
cmp
(&self, other: &Self)
src/objective/base_value.rs:132
↓ 6 callers
Function
default_function_between_steps
Default function between steps that prints the iteration number, the objective value of the current solution, the comparison of the objective value of
src/heuristics/common/function_between_steps.rs:34
↓ 6 callers
Method
three_opt_swap
Performs a single [3-opt swap](https://en.wikipedia.org/wiki/3-opt) on the tour. Assumes that 0 <= i < j < k < n. New [`TspTour`] consists of the node
src/examples/tsp/tsp_tour.rs:93
↓ 5 callers
Function
build_tsp_objective
Builds the [`Objective`] for the TSP, which consists of a single [`Indicator`] for the total distance of the tour.
src/examples/tsp/objective.rs:20
↓ 4 callers
Method
partial_cmp
(&self, other: &Self)
src/objective/base_value.rs:165
↓ 2 callers
Function
build
Builds a local search solver with the default [`LocalImprover`][`crate::heuristics::local_search::local_improver::LocalImprover`] [`Minimizer`][`crate
src/examples/tsp/solvers/basic_local_search.rs:24
↓ 2 callers
Function
build
Builds a [`ThresholdAcceptingSolver`] for the TSP. The neighborhood is the [3-opt neighborhood][RotatedThreeOptNeighborhood], i.e., the neighborhood t
src/examples/tsp/solvers/threshold_accepting.rs:39
↓ 2 callers
Function
build
Builds a [`LocalSearchSolver`] with [`TakeFirstRecursion`] as [`LocalImprover`][`crate::heuristics::local_search::local_improver::LocalImprover`]. The
src/examples/tsp/solvers/take_first_local_search.rs:42
↓ 2 callers
Function
build
Builds a [`SimulatedAnnealingSolver`] for the TSP. The neighborhood is the [3-opt neighborhood][RotatedThreeOptNeighborhood], i.e., the neighborhood t
src/examples/tsp/solvers/simulated_annealing.rs:70
↓ 2 callers
Function
build
Builds a parallel local search solver with the default [`ParallelLocalImprover`][`crate::heuristics::parallel_local_search::parallel_local_improver::P
src/examples/tsp/solvers/parallel_local_search.rs:25
↓ 2 callers
Function
build
Builds a [`ParallelTabuSearchSolver`] for the TSP. The neighborhood is the 3-opt neighborhood, i.e., the neighborhood that consists of all tours that
src/examples/tsp/solvers/parallel_tabu_search.rs:102
↓ 2 callers
Function
build_objective_for_tsp_tour_with_info
Builds the [`Objective`] for [`TspTourWithInfo`], which consists of a single [`Indicator`] for the total distance of the tour.
src/examples/tsp/tsp_tour_with_info/objective.rs:21
↓ 2 callers
Method
cmp
(&self, other: &Self)
src/objective/objective_value.rs:37
↓ 2 callers
Method
evaluate
(&self, solution: &TestSolution)
src/objective/tests.rs:18
↓ 2 callers
Method
get_total_distance
Returns the `total_distance` of the tour.
src/examples/tsp/tsp_tour.rs:82
↓ 2 callers
Method
print_objective_value
Prints the [`ObjectiveValue`].
src/objective/mod.rs:64
↓ 2 callers
Function
print_usage
(program_name: &str)
src/examples/tsp/main.rs:76
↓ 2 callers
Method
sum
(iter: I)
src/objective/base_value.rs:179
↓ 2 callers
Method
unwrap_float
Unwraps [`BaseValue::Float`]. Panics if other variant.
src/objective/base_value.rs:43
↓ 1 callers
Method
explore_neihborhood
( &self, current_solution: &EvaluatedSolution<S>, current_threshold: &ObjectiveValue,
src/heuristics/threshold_accepting/mod.rs:157
↓ 1 callers
Method
explore_neihborhood
( &self, current_solution: &EvaluatedSolution<S>, current_temperature: Temperature,
src/heuristics/simulated_annealing/mod.rs:203
↓ 1 callers
Method
improve
( &self, solution: &EvaluatedSolution<S>, tabu_list: &VecDeque<T>, )
src/heuristics/parallel_tabu_search/parallel_tabu_improver/parallel_tabu_minimizer.rs:37
↓ 1 callers
Method
improve
(&self, solution: &EvaluatedSolution<S>)
src/heuristics/local_search/local_improver/minimizer.rs:34
↓ 1 callers
Method
improve
( &self, solution: &EvaluatedSolution<S>, tabu_list: &VecDeque<T>, )
src/heuristics/tabu_search/tabu_improver/tabu_minimizer.rs:37
↓ 1 callers
Method
improve
(&self, solution: &EvaluatedSolution<S>)
src/heuristics/parallel_local_search/parallel_local_improver/parallel_minimizer.rs:34
↓ 1 callers
Method
improve_recursion
Returns the first improving solution in the neighborhood of the given solutions. If no improvement is found, None is returned.
src/heuristics/local_search/local_improver/take_first_recursion.rs:58
↓ 1 callers
Method
improve_recursion
( &self, solutions: Vec<EvaluatedSolution<S>>, objective_to_beat: &ObjectiveValue,
src/heuristics/parallel_local_search/parallel_local_improver/take_any_recursion.rs:65
↓ 1 callers
Method
is_tabu
Checks if the given 3-opt move is tabu.
src/examples/tsp/solvers/tabu_search.rs:23
↓ 1 callers
Method
is_tabu
Checks if the given 3-opt move is tabu.
src/examples/tsp/solvers/parallel_tabu_search.rs:25
↓ 1 callers
Method
partial_cmp
(&self, other: &Self)
src/objective/objective_value.rs:48
↓ 1 callers
Method
print_objective_value_with_comparison
Prints the [`ObjectiveValue`] with a comparison to another [`ObjectiveValue`].
src/objective/mod.rs:71
Method
add
(self, rhs: Self)
src/objective/objective_value.rs:64
Method
add
(self, other: Self)
src/objective/base_value.rs:100
Method
as_vec
Returns the entries of the objective vector as a vector.
src/objective/objective_value.rs:31
Method
create_tabus
Creates for a given 3-opt move the three tabus corresponding to the arcs that are removed by the move.
src/examples/tsp/solvers/tabu_search.rs:35
Method
create_tabus
Creates for a given 3-opt move the three tabus corresponding to the arcs that are removed by the move.
src/examples/tsp/solvers/parallel_tabu_search.rs:37
Method
eq
(&self, other: &Self)
src/objective/objective_value.rs:54
Method
eq
(&self, other: &Self)
src/objective/base_value.rs:171
Method
evaluate
Evaluate the linear combination for a given solution.
src/objective/linear_combination.rs:15
Method
evaluate
(&self, tsp_tour: &TspTour)
src/examples/tsp/objective.rs:9
Method
evaluate
(&self, tsp_tour: &TspTourWithInfo)
src/examples/tsp/tsp_tour_with_info/objective.rs:10
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/objective/coefficient.rs:80
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/objective/linear_combination.rs:29
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/objective/base_value.rs:185
Method
from
(i: i32)
src/objective/coefficient.rs:31
Method
from_instance_nearest_neighbor
Creates a new [`TspTour`] using the [nearest neighbor heuristic](https://en.wikipedia.org/wiki/Nearest_neighbour_algorithm).
src/examples/tsp/tsp_tour.rs:39
Method
from_tsplib_file
Loads a [`TspInstance`] from a [TSPLIB file](http://comopt.ifi.uni-heidelberg.de/software/TSPLIB95/). Support symmetric and asymmetric instances.
src/examples/tsp/tsp_instance.rs:50
Method
get_last_i
Returns the first index of the last 3-opt move.
src/examples/tsp/tsp_tour_with_info/mod.rs:30
Method
get_tour
Returns the [`TspTour`] of this [`TspTourWithInfo`].
src/examples/tsp/tsp_tour_with_info/mod.rs:25
Method
improve
(&self, solution: &EvaluatedSolution<S>)
src/heuristics/local_search/local_improver/take_first.rs:36
Method
improve
(&self, solution: &EvaluatedSolution<S>)
src/heuristics/local_search/local_improver/take_first_recursion.rs:45
Method
improve
(&self, solution: &EvaluatedSolution<S>)
src/heuristics/parallel_local_search/parallel_local_improver/take_any_recursion.rs:58
Method
initialize
Creates a new [`ParallelTabuSearchSolver`] with the given [`ParallelTabuNeighborhood`], [`Objective`], tabu list size, and as a termination criterion
src/heuristics/parallel_tabu_search/mod.rs:73
Method
initialize
Creates a new [`LocalSearchSolver`] with the given [`Neighborhood`] and [`Objective`]. Uses the default [`LocalImprover`] ([`Minimizer`]) and the defa
src/heuristics/local_search/mod.rs:51
Method
initialize
Creates a new [`TabuSearchSolver`] with the given [`TabuNeighborhood`], [`Objective`], tabu list size, and as a termination criterion the maximal numb
src/heuristics/tabu_search/mod.rs:72
Method
initialize
Creates a new [`ThresholdAcceptingSolver`] with the given [`Neighborhood`], [`Objective`], `initial_threshold` and `threshold_factor` (value between 0
src/heuristics/threshold_accepting/mod.rs:53
Method
initialize
Creates a new [`SimulatedAnnealingSolver`] with the given [`Neighborhood`], [`Objective`], `initial_temperature`, `cooling_factor`, and [`AcceptancePr
src/heuristics/simulated_annealing/mod.rs:83
Method
initialize
Creates a new [`ParallelLocalSearchSolver`] with the given [`ParallelNeighborhood`] and [`Objective`]. Uses the default [`ParallelLocalImprover`] ([`P
src/heuristics/parallel_local_search/mod.rs:46
Method
is_one
Returns `True` if the coefficient is one.
src/objective/coefficient.rs:22
Function
main
With this main function, you can run a TSP solver with a provided TSPLIB file.
src/examples/tsp/main.rs:10
Method
maximum
Returns the maximum [`ObjectiveValue`] ([`BaseValue::Maximum`] on each level).
src/objective/mod.rs:59
Method
mul
(self, other: BaseValue)
src/objective/coefficient.rs:45
Method
mul
(self, rhs: f32)
src/objective/objective_value.rs:92
Method
name
(&self)
src/objective/tests.rs:22
Method
name
(&self)
src/examples/tsp/objective.rs:13
Method
name
(&self)
src/examples/tsp/tsp_tour_with_info/objective.rs:14
Method
neighbors_of
( &'a self, tour: &'a TspTour, tabu_list: &'a VecDeque<Tabu>, )
src/examples/tsp/solvers/tabu_search.rs:70
Method
neighbors_of
( &'a self, tour: &'a TspTour, tabu_list: &'a VecDeque<Tabu>, )
src/examples/tsp/solvers/parallel_tabu_search.rs:72
Method
neighbors_of
( &'a self, tour_with_info: &'a TspTourWithInfo, )
src/examples/tsp/tsp_tour_with_info/neighborhood.rs:24
Method
new
Creates a new [`Objective`] with the given [`LinearCombinations`][`LinearCombination`] as hierarchy levels. The most important level is the first entr
src/objective/mod.rs:121
Method
new
Creates a new objective value. This is usally done by the [evaluate][super::Objective::evaluate] method of an Objective.
src/objective/objective_value.rs:21
Method
new
Create a [`EvaluatedSolution`]. Usually done by the [`evaluate`][`super::Objective::evaluate`] method of an [`Objective`][`super::Objective`] instance
src/objective/evaluated_solution.rs:19
Method
new
Creates a new linear combination from a list of summands.
src/objective/linear_combination.rs:23
Method
new
Creates a new [`ParallelTabuMinimizer`] with the given [`ParallelTabuNeighborhood`] and [`Objective`].
src/heuristics/parallel_tabu_search/parallel_tabu_improver/parallel_tabu_minimizer.rs:26
Method
new
Creates a new [`Minimizer`] with the given [`Neighborhood`] and [`Objective`].
src/heuristics/local_search/local_improver/minimizer.rs:22
Method
new
Creates a new [`TakeFirst`] with the given [`Neighborhood`] and [`Objective`].
src/heuristics/local_search/local_improver/take_first.rs:24
Method
new
Creates a new instance of [`TakeFirstRecursion`]. In addition to the [`Neighborhood`] and the [`Objective`] the following parameters are needed: `recu
src/heuristics/local_search/local_improver/take_first_recursion.rs:29
Method
new
Creates a new [`TabuMinimizer`] with the given [`TabuNeighborhood`] and [`Objective`].
src/heuristics/tabu_search/tabu_improver/tabu_minimizer.rs:25
Method
new
Creates a new [`ParallelMinimizer`] with the given [`ParallelNeighborhood`] and [`Objective`].
src/heuristics/parallel_local_search/parallel_local_improver/parallel_minimizer.rs:23
Method
new
Creates a new instance of [`TakeAnyRecursion`]. In addition to the [`ParallelNeighborhood`] and the [`Objective`] the following parameters are needed:
src/heuristics/parallel_local_search/parallel_local_improver/take_any_recursion.rs:40
Method
new
Creates a new [`TspTour`] with the given nodes and computes the total distance.
src/examples/tsp/tsp_tour.rs:16
Method
new
Creates a new [`ThreeOptNeighborhood`] for the given [`TspInstance`].
src/examples/tsp/neighborhood.rs:20
Method
new
Creates a new [`TspInstance`] with the given `distance_matrix`.
src/examples/tsp/tsp_instance.rs:36
Method
new
Creates a new [`ThreeOptTabuNeighborhood`] for the given [`TspInstance`].
src/examples/tsp/solvers/tabu_search.rs:64
Method
new
Creates a new [`ParallelThreeOptTabuNeighborhood`] for the given [`TspInstance`].
src/examples/tsp/solvers/parallel_tabu_search.rs:66
Method
new
Creates a new [`RotatedThreeOptNeighborhood`] for the given [`TspInstance`].
src/examples/tsp/tsp_tour_with_info/neighborhood.rs:18
Method
new
Creates a new [`TspTourWithInfo`] from a [`TspTour`] and the first index of the last 3-opt move.
src/examples/tsp/tsp_tour_with_info/mod.rs:20
Method
new_pre_computed
( nodes: Vec<NodeIdx>, total_distance: Distance, tsp_instance: Arc<TspInstance>, )
src/examples/tsp/tsp_tour.rs:26
next →
1–100 of 144, ranked by callers