The recursion, discussed above, is entered in LINGO with the following statement:

@FOR( CITIES( i)| i #LT# @SIZE( CITIES):

 F( i) = @MIN( ROADS( i, j): D( i, j) + F( j))

);