set.temp.dir {localsolver} | R Documentation |
Sets folder to use for the problem instance solving process temporary data.
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
set.temp.dir(lsp, path)
Arguments
lsp |
problem instance created with
|
path |
the directory, which will be used for temporary data. |
Examples
model.text.lsp <- lsp.model.example('extdata/knapsack.txt')
lsp <- ls.problem(model.text.lsp)
lsp <- set.temp.dir(lsp, tempdir())
[Package localsolver version 2.3 Index]