optimsimplex.reflect: Simplex Reflection

Description Usage Arguments Value Author(s) See Also

View source: R/optimsimplex.reflect.R


This function returns a new simplex by reflection of the current simplex with respect to the first vertex in the simplex. This move is used in the centered simplex gradient.


  optimsimplex.reflect(this = NULL, fun = NULL, data = NULL)



An simplex object.


The function to compute at vertices. The function is expected to have the following input and output arguments:

myfunction <- function(x, this){

where x is a row vector and this a user-defined data, i.e. the data argument.


A user-defined data passed to the function. If data is provided, it is passed to the callback function both as an input and output argument. data may be used if the function uses some additionnal parameters. It is returned as an output parameter because the function may modify the data while computing the function value. This feature may be used, for example, to count the number of times that the function has been called.


Return a list with the following elements:


The reflected simplex object.


The updated user-defined data.


Author of Scilab optimsimplex module: Michael Baudin (INRIA - Digiteo)

Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)

See Also


optimsimplex documentation built on May 19, 2017, 11:46 a.m.
Search within the optimsimplex package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.