Set functions {optimsimplex} | R Documentation |
Optimsimplex Set Function Class
Description
The functions assign content to various elements of a simplex object:
optimsimplex.setall
Set all the coordinates and the function values of all the vertices.
optimsimplex.setallfv
Set all the function values of all the vertices.
optimsimplex.setallx
Set all the coordinates of all the vertices.
optimsimplex.setfv
Set the function value at a givenindex.
optimsimplex.setn
Set the dimension of the space of the simplex.
optimsimplex.setnbve
Set the number of vertices of the simplex.
optimsimplex.setve
Set the coordinates of the vertex and the function values at a given index in the current simplex.
optimsimplex.setx
Set the coordinates of the vertex at a given index in the current simplex.
Usage
optimsimplex.setall(this = NULL, simplex = NULL)
optimsimplex.setallfv(this = NULL, fv = NULL)
optimsimplex.setallx(this = NULL, x = NULL)
optimsimplex.setfv(this = NULL, ive = NULL, fv = NULL)
optimsimplex.setn(this = NULL, n = NULL)
optimsimplex.setnbve(this = NULL, nbve = NULL)
optimsimplex.setve(this = NULL, ive = NULL, fv = NULL, x = NULL)
optimsimplex.setx(this = NULL, ive = NULL, x = NULL)
Arguments
this |
A simplex object. |
simplex |
The simplex to set. It is expected to be a nbve x n+1 matrix where n is the dimension of the space, nbve is the number of vertices and with the following content:
|
fv |
A row vector of function values; |
x |
The nbve x n matrix of vertice coordinates; the vertex is expected to
be stored in |
ive |
Vertex index. |
n |
The dimension of the space of the simplex. |
nbve |
The number of vertices of the simplex. |
Value
Return a updated simplex object this
.
Author(s)
Author of Scilab optimsimplex module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)