starting solutions {transport}R Documentation

Compute starting solution for the transportation problem

Description

Compute a feasible transference plan between two mass vectors.

Usage

northwestcorner(a, b)
russell(a, b, costm)

Arguments

a, b

Two numeric vectors (typically containing natural numbers) of length mm and nn, describing mass distributions.

costm

A mm by nn matrix of costs for moving one unit of mass.

Value

A list whose components are mm by nn matrices, viz.

assignment

containing as (i,j)(i,j)-th entry the mass assigned from origin ii to destination jj;

basis

containing as (i,j)(i,j)-th entry a 11 if it is a basic entry and a 00 otherwise.

Warnings

The current implementations are in R. Computations may be slow for larger vectors a and b.
The computed starting solution may be degenerate, i.e. there may be basic entries where zero mass is assigned.

Author(s)

Dominic Schuhmacher dschuhm1@uni-goettingen.de

See Also

transport


[Package transport version 0.15-2 Index]