Copy solution

Signature

copy_solution(Solution) : Solution

Description

This function produces a copy of the given solution.

Use cases

Making copies of solutions may be required when keeping track of the best solution found so far. It is also required by optimisation algorithms such as beam search and evolutionary algorithms.

See also

Solution.