step2Opt: 2-Opt Step

View source: R/optim2opt.R

step2OptR Documentation

2-Opt Step

Description

Helper function: A single 2-opt step for optim2Opt

Usage

step2Opt(route, i, k)

Arguments

route

route to be partially reversed

i

start of reversal

k

end of reversal

Value

a new route


CEGO documentation built on May 29, 2024, 3:35 a.m.