is_convergent: Convergency test

Description Usage Arguments Value

View source: R/is_convergent.R

Description

Regard those two link flows lists as the point in Euclidean space R^n, then judge the convergence under given accuracy criterion. Here the formula ERR = || x_k+1 - x_k || / || x_k || is recommended.

Usage

1
is_convergent(flow, new_flow, accuracy = 1e-06)

Arguments

flow

Past iteration calculated traffic flow

new_flow

Current iteration calculated traffic flow

accuracy

Error accuracy value. The accuracy is suggested to be set as 1e-6.

Value

Boolen (TRUE) or (FALSE)


douglascm/trafficr documentation built on March 13, 2020, 11:44 a.m.