S3 simplex and vertex classes

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)