Skip to contents

BBO_borg_moea() solves a multiobjective problem (an OptimizationProblem() built on a MultiObjectiveOptimizationFunction()) with the Borg MOEA of BlackBoxOptim.jl (Hadka and Reed 2013), ported to R, as the BBO_borg_moea wrapper of OptimizationBBO does. Borg keeps an archive of the points that are not dominated in epsilon boxes (boxes of side epsilon in the space of the objectives) and a population. Each step picks one of seven recombination operators (differential evolution, simulated binary, simplex, two parent centric and two unimodal normal distribution crossovers) with probabilities that follow how many archive points each operator made, takes the parents by tournament from the population and one parent from the archive, and puts the child into the population in place of a point it dominates. When the population no longer fits the archive, or the archive stops making progress, the population is restarted from the archive and mutated archive points.

Usage

BBO_borg_moea()

Value

An algorithm object.

Details

The problem needs finite bounds (lb and ub); u0 is put into the initial population. The solve arguments map as in OptimizationBBO: maxiters to MaxSteps (default 10000; the run stops after one step more), maxtime to MaxTime (seconds) and abstol to MinDeltaFitnessTolerance (not used by Borg); reltol is not used. A callback(state, objective) is called after every step with state$iter, state$u and state$objective (the best point so far, the one with the least sum of the objectives on the archive) and state$original (the state of the run); TRUE stops the run. Other arguments are BlackBoxOptim parameters: FitnessScheme (a ParetoFitnessScheme(); by default one with as many objectives as the function returns), PopulationSize (50), MaxFuncEvals, MaxStepsWithoutProgress (10000 calls to the archive without epsilon progress), MaxNumStepsWithoutFuncEvals (100), epsilon (0.1, the side of the epsilon boxes, one value or one per objective), tau (0.02, the tournament size as a fraction of the population), gamma (4, the population to archive ratio), gamma_delta (0.25), theta (0.9), zeta (1), RestartCheckPeriod (1000), OperatorsUpdatePeriod (100), MaxStepsWithoutEpsProgress (100), MaxArchiveSize (100000), the operator parameters DEX_f (0.6), DEX_cr (0.7), SBX_p (0.2), SBX_eta (3), SPX_epsilon (1.1), PCX_zeta (0.1), PCX_eta (0.5), UNDX_zeta (0.5), UNDX_eta (0.1) and PM_eta (50), and Population (a matrix with one initial point per column; the last column is the transient member). Greek parameter names are spelled out.

The solution's u and objective are the best point and its objectives, as in OptimizationBBO; original holds the stop reason and the whole archive (frontier$X, one point per row, and frontier$F, their objectives). The return code is MaxIters when the run reaches MaxSteps, MaxTime at MaxTime and Default otherwise (with a warning that names the stop reason). The run uses R's random numbers: call set.seed() for a repeatable run.

Examples

sphere_rastrigin <- function(x, p) c(sum(x^2), sum(x^2 - 10 * cos(2 * pi * x) + 10))
prob <- OptimizationProblem(MultiObjectiveOptimizationFunction(sphere_rastrigin), c(0.25, 0.25),
                            lb = c(0, 0), ub = c(2, 2))
set.seed(1)
sol <- solve(prob, BBO_borg_moea(), maxiters = 300)
sol$u; sol$objective
#> [1] 6.254981e-05 5.074137e-05
#> [1] 6.487165e-09 1.287002e-06