plot.heumilkr_solution: Plot a CVRP solution

View source: R/autoplot.R

plot.heumilkr_solutionR Documentation

Plot a CVRP solution

Description

Represents the sites and runs on a 2D plane so that the distances between sites on the drawn 2D plane correspond to distances provided to the solver clarke_wright().

The individual runs are distinguished by color. The site locations are marked with round circles while the depot is depicted as a square. Delivery and pickup sites are not distinguished. The line types (solid/dashed/...) are associated to different vehicle types.

Usage

## S3 method for class 'heumilkr_solution'
plot(x, ...)

Arguments

x

A "heumilkr_solution" object, typically obtained by clarke_wright().

...

Not used.

Details

Distance information between sites only determine site positions on a 2D plane up to rotations and translations: those are fixed arbitrarily.


heumilkr documentation built on Nov. 13, 2026, 5:08 p.m.