Result of running ILS.
This matches PyVRP's Result class interface:
cost/1- Returns the cost of the best solution (infinity if infeasible)feasible?/1- Returns whether the best solution is feasiblebest- The best Solution foundstats- Statistics from the searchnum_iterations- Total iterations performedruntime- Runtime in milliseconds
Summary
Functions
Returns the cost of the best solution.
Returns whether the best solution is feasible.
Returns a summary string of the result.
Types
@type t() :: %ExVrp.IteratedLocalSearch.Result{ best: ExVrp.Solution.t(), num_iterations: non_neg_integer(), runtime: non_neg_integer(), stats: map() }
Functions
@spec cost(t()) :: non_neg_integer() | :infinity
Returns the cost of the best solution.
Returns :infinity if the solution is infeasible, matching PyVRP's behavior.
Returns whether the best solution is feasible.
Returns a summary string of the result.