autoplot.heumilkr_solution: Create ggplot for a CVRP solution

View source: R/autoplot.R

autoplot.heumilkr_solutionR Documentation

Create ggplot for 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 demanding site locations are marked with round circles while the (single) supplying site is depicted as a square. The line types (solid/dashed/...) are associated to different vehicle types.

Usage

## S3 method for class 'heumilkr_solution'
autoplot(object, ...)

Arguments

object

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.

Value

A ggplot object.


heumilkr documentation built on June 8, 2025, 10:52 a.m.