Last data update: 2014.03.03
|
R: Morphing (convex-combination) of two instances with parameter...
morph_instances | 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 |
[tsp_instance ]
|
y |
[tsp_instance ]
|
alpha |
[numeric(1) ]
Coefficient alpha for convex combination.
|
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)
Results
|