ffa.improve: Improve (step2)

Description Usage Arguments Details Value

View source: R/solver_ffa.R

Description

Tries to improve a solution by local search (heuristical swap) Stops when improvement is detected*

Usage

1
ffa.improve(p, w, v, satur, G)

Arguments

p

vector of colors

w

vector of weights

v

number of violations

G

graph

Details

NOTE: The paper is a little bit unclear about this procedure. It says the heuristical swap operator is executed until the improvements are detected, but it doens't say exactly how to proceed after a no improvement Some questions of when there is no improvement: should the next uncolored vertex be considered? or should the next swap be on the result of the previous swap?

This version assumes the next uncolored vertex should be considered in case of no improvement.*

Value

list with the permutation of w and its related p, v and number of its functions evaluated


caranha/EvoGCP documentation built on May 3, 2021, 3:40 p.m.