morph_instances: Morphing (convex-combination) of two instances with parameter...

Description Usage Arguments Value Examples

Description

Pairs of cities are matched in a greedy fashion, see greedy_point_matching.

Usage

1
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

1
2
3
4
5
6
x = random_instance(10)
y = random_instance(10)
z = morph_instances(x, y, 0.5)
autoplot(x)
autoplot(y)
autoplot(z)

berndbischl/tspmeta documentation built on May 12, 2019, 7:24 p.m.