h_alonso: h_alonso

Description Usage Arguments Value Author(s)

Description

Alonso gravity model

Usage

1
2
3
h_alonso(E, Si = 1, Sj = 1, f, in_delta, out_delta, in_g,
  in_s = rep(1, length(in_g)), out_g, out_s = rep(1, length(out_g)),
  alpha, x)

Arguments

E

a matrix of random values (to be "optimized" by the Hamiltonian)

Si

a vectory of node attributes, e.g. carrying capacity or population

Sj

a vectory of node attributes, e.g. carrying capacity or population

f

a scalar giving the general systems constrained

in_delta

general node constraining value of inflows

out_delta

general node constraining value of outflows

in_g

vector of inflows (rows)

in_s

vector of inflows (rows)

out_g

vector of outflows (rows)

out_s

vector of outflows (rows)

alpha

lagrange multiplier

x

general node constraining value

Value

a scalar

Author(s)

Daniel Knitter <knitter@geographie.uni-kiel.de>

Joe Roe <jwg983@hum.ku.dk>

Ray Rivers <r.rivers@imperial.ac.uk>


CRC1266-A2/moin documentation built on May 7, 2019, 8:56 p.m.