simplex: S3 simplex and vertex classes

Description Usage Arguments Details Value Author(s)

Description

These functions support the S3 classes 'simplex' and 'vertex'. They are intended to either create objects of these classes or check if an object is of these classes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  simplex(verbose,x,n,fv,nbve)
  
  vertex(x,n,fv)
  
  ## S3 method for class 'simplex'
print(x,...)
  
  ## S3 method for class 'vertex'
print(x,...)
  
  ## S3 method for class 'simplex'
is(x)
  
  ## S3 method for class 'vertex'
is(x)

Arguments

verbose

The verbose option, controlling the amount of messages

x

The coordinates of the vertices, with size nbve x n in a simplex object or 1 x n in a vertex.

n

The dimension of the space.

fv

The values of the function at given vertices. It is a column matrix of length nbve in a simplex or a single value in a vertex.

nbve

The number of vertices in a simplex.

...

optional arguments to 'print' or 'plot' methods.

Details

A simplex of size n x nbve is essentially a collection of vertex of size n.

Value

simplex returns a list with the following elements: verbose, x, n, fv, and nbve. vertex returns a list with the following elements: x, n, and fv.

Author(s)

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

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



Search within the optimsimplex package
Search all R packages, documentation and source code

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

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

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