enumerateTSP | R Documentation |
These functions enumerate all candidate solutions for
a certain combinatorial optimization problem, e.g., all permutations
for a TSP or all Pruefer-codes for a MST problem. Note that the output
grows exponentially with the instance size n
.
enumerateTSP(n)
enumerateMST(n)
n |
[ |
[matrix
] Each row contains a candidate solution.
sols = enumerateTSP(4L)
sols = enumerateMST(4L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.