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

Description Usage Arguments Examples

View source: R/00_api.R

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())

localsolver documentation built on May 1, 2019, 8 p.m.