Learn R Programming

CEGO (version 2.4.3)

step2Opt: 2-Opt Step

Description

Helper function: A single 2-opt step for optim2Opt

Usage

step2Opt(route, i, k)

Value

a new route

Arguments

route

route to be partially reversed

i

start of reversal

k

end of reversal