simplexImport: Imports the information contained in a '.smplx' file.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/simplexImport.R

Description

The function reads and (optionally) loads into the environment the simplex (object of class smplx) contained in a .smplx file that was previously created using simplexExport.

Usage

1
simplexImport(filename, aut.load = TRUE, name = NULL)

Arguments

filename

string with the name of the file (without extension) to be imported. This file must be generated using simplexExport. The path must be included if the file is not in the current working directory.

aut.load

logical. Should the imported simplex object be directly loaded on the Environment? Default to TRUE.

name

name for the simplex object to be created if auth.ld = FALSE. When not provided, the name of the file is used.

Value

A smplx class object with the complete information of the simplex

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Jesús Ágreda, jagreda@unal.edu.co

See Also

simplexImport

Examples

1
2
3
4
5
6
  
  simplexR2 <- exampleOptimization(surface = exampleSurfaceR2)
  simplexExport(simplex = simplexR2)
  rm(simplexR2)
  simplexImport(filename = "simplexR2")
  

labsimplex documentation built on July 1, 2020, 9:08 p.m.