Learn R Programming

optimsimplex (version 1.0-8)

osimplex: S3 osimplex and vertex classes

Description

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

Usage

osimplex(verbose,x,n,fv,nbve)
  
  vertex(x,n,fv)
  
  # S3 method for osimplex
print(x,...)
  
  # S3 method for vertex
print(x,...)
  
  # S3 method for osimplex
is(x)
  
  # S3 method for 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.

Value

osimplex 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.

Details

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