# Define search space
search.space <- "ivbase"
# Example fitness_history from round 1
fitness_history <- data.frame(
round = rep(1, 8),
mod.no = 1:8,
no.cmpt = c(1, 1, 2, 2, 3, 3, 2, 2),
eta.km = c(0, 0, 0, 0, 0, 0, 0, 0),
eta.vc = c(0, 0, 0, 0, 0, 0, 1, 1),
eta.vp = c(0, 0, 0, 0, 0, 0, 0, 1),
eta.vp2 = c(0, 0, 0, 0, 0, 0, 0, 0),
eta.q = c(0, 0, 0, 0, 0, 0, 0, 0),
eta.q2 = c(0, 0, 0, 0, 0, 0, 0, 0),
mm = c(0, 0, 0, 0, 0, 0, 1, 0),
mcorr = c(0, 0, 0, 0, 0, 0, 0, 0),
rv = c(1, 2, 1, 2, 1, 2, 1, 1),
fitness = c(1243.874, 1200.762, 31249.876, 31202.200,
51259.286, 51204.839, 61032.572, 41031.825),
allrank = c(2, 1, 4, 3, 7, 6, 8, 5)
)
# Example node list history
nodeslst.hist <- initNodeList(
search.space = search.space,
phi0 = 2
)
phi.calculate(
r = 1,
search.space = search.space,
fitness_history = fitness_history,
nodeslst.hist = nodeslst.hist
)
Run the code above in your browser using DataLab