set.temp.dir: Sets folder to use for the problem instance solving process...

Description Usage Arguments Examples

Description

Exposed for technical reasons. Temporary folder is used to store files for communication with LocalSolver application. By default system received temp folder is used. Setting temporary folder is useful in case ls.solve is performed in parallel. In that case each call should use own lsp instance with dedicated temporary folder. In case of changing this directory, it is important to choose a path to a folder with write access.

Usage

1
set.temp.dir(lsp, path)

Arguments

lsp

problem instance created with ls.problem.

path

the directory, which will be used for temporary data.

Examples

1
2
3
model.text.lsp <- lsp.model.example('extdata/knapsack.txt')
lsp <- ls.problem(model.text.lsp)
lsp <- set.temp.dir(lsp, tempdir())


Search within the localsolver package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.