R Wrapper |
Top Previous Next |
The R package SIMPLACE
The use of SIMPLACE from R can be found here.
Installation
Install the package (and maybe the required package rJava) by running
install.packages("simplace", repos=c("http://r-forge.r-project.org", "http://cran.r-project.org"))
If you installed a previous version, please run
update.packages("simplace", repos=c("http://r-forge.r-project.org", "http://cran.r-project.org"))
Example:
SimplaceInstallationDir <- "D:/java/simplace/"
SimplaceWorkDir <- "D:/java/simplace/simplace_run/simulation/"
SimplaceOutputDir <- "D:/java/simplace/simplace_run/output/"
Solution <- "D:/java/simplace/simplace_run/simulation/gk/solution/complete/Complete.sol.xml"
simplace <- initSimplace(SimplaceInstallationDir,SimplaceWorkDir,SimplaceOutputDir)
openProject(simplace, Solution)
parameter <- list()
parameter$vTempLimit <- 32
simid <- createSimulation(simplace,parameter)
runSimulations(simplace)
result <- getResult(simplace,"DIAGRAM_OUT", simid);
closeProject(simplace)
resultlist <- resultToList(result)
resultlist$Lintul2.sWSO
See the instruction in the package documentation by running
library(simplace)
or consult the vignette:
vignette("simplace")