Description Usage Arguments Examples
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.
1 | set.temp.dir(lsp, path)
|
lsp |
problem instance created with
|
path |
the directory, which will be used for temporary data. |
1 2 3 | model.text.lsp <- lsp.model.example('extdata/knapsack.txt')
lsp <- ls.problem(model.text.lsp)
lsp <- set.temp.dir(lsp, tempdir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.