Data Mining Algorithms In R/Packages/optimsimplex/optimsimplex.print

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

optimsimplex.tostring formats the coordinates and function values in a character vector.
optimsimplex.print displays to screen the content of the current simplex with dimensions, coordinates and function values. This function calls optimsimplex.tostring to format the content of the simplex.

Usage[edit | edit source]

   optimsimplex.print(this = NULL)
   optimsimplex.tostring(this = NULL)

Arguments[edit | edit source]

this A simplex object.

Value[edit | edit source]

optimsimplex.tostring returns a vector of character string of length nbve, where nbve is the number of vertices.
optimsimplex.print does not return any value but print to screen (or log file) the content of the current simplex.

Authors[edit | edit source]

Author of Scilab optimsimplex module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)

Examples[edit | edit source]

   opt <- optimsimplex.new(method='axes',x0=1:5)$newobj
   optimsimplex.tostring(opt)
   optimsimplex.print(opt)