plot.tabu: R Based Tabu Search Plot Function

Description Usage Arguments Examples

Description

Plots features of an optimization run of the tabu search algorithm for binary strings. The default plots show: (a) the number of times each element of the string was set to one over the search, (b) frequency of moves for each element of the string over the serach, (c) the number of ones in the chosen configuration at each iteration, (d) the objective function value of the current configuration at each iteration of the algorithm. The "tracePlot" shows the current configurations for all interations.

Usage

1
2
## S3 method for class 'tabu'
plot(x, type = "default", ...)

Arguments

x

a tabu object.

type

"tracePlot" or default.

...

options directly passed to the plot function.

Examples

1
2
3
4
5
6
7
# A simple example

evaluateSimple <- function(th)return(1)
result <- tabuSearch(size = 20, iters = 100, objFunc = evaluateSimple) 

plot(result)
plot(result, "tracePlot")

tabuSearch documentation built on May 2, 2019, 2:47 p.m.