RcppGO: RcppGO

Description Usage Arguments Details Value Author(s)

View source: R/RcppGO.R

Description

This is the main function for calling the optimization routine.

Usage

1
2
3
  RcppGO(ObjectiveFunction, Args, Lower, Upper, n = 20,
    g = 20, Iterations = 201, User = FALSE, Scale = 0.1,
    Maximize = FALSE)

Arguments

ObjectiveFunction

The objective function for optimization.

Args

Specifies the number of arguments provided by 'ObjectiveFunction'.

Lower

Vector for lower boundaries.

Upper

Vector for upper boundaries.

n

Number of searching particles. Default is '20'.

g

Number of best solutions stored. Default is '20'.

Iterations

Number of iterations. Default is '201'.

User

If 'TRUE' the variable 'Scale' can be set manually. Default is 'FALSE'.

Scale

Sets the particle radius. Default is '0.1'.

Maximize

The objective function will be maximized, if 'TRUE'. Default is 'FALSE'.

Details

'RcppGO' calls all 'R' subfunctions defined in 'RcppGO.Helper.R' and the algorithm written in 'C++'.

Value

A list with the following parameters: - the evolution of the optimization process: 'GravityParticles' - the 'ObjectiveFunction' - a matrix with 'g' saved best solutions: 'GMemory' - the number of 'Iterations' - the number of searching particles: 'n' - the number of best solutions found: 'g' - the 'Lower' and 'Upper' bounds - the user provided values of 'Scale', 'User' and 'Maximize'

Author(s)

Peter Kehler


peterkehlerjr/RcppGO documentation built on Dec. 29, 2021, 11:20 p.m.