morph_instances {tspmeta} | R Documentation |
Morphing (convex-combination) of two instances with parameter alpha.
Description
Pairs of cities are matched in a greedy fashion, see greedy_point_matching
.
Usage
morph_instances(x, y, alpha)
Arguments
x |
|
y |
|
alpha |
[ |
Value
[tsp_instance
]
Morphed TSP instance.
Examples
x = random_instance(10)
y = random_instance(10)
z = morph_instances(x, y, 0.5)
autoplot(x)
autoplot(y)
autoplot(z)
[Package tspmeta version 1.2 Index]