Prepares input and data for LocalSolver, runs the application and parses its output to get resulting values.
problem instance created with
named list of data items. Each element of the list should be indexed with the parameter name and should be a number, vector, matrix or array (of dimension 2 or 3) of numbers. The class of the numbers should be either integer (they will be then handled as integer by the LocalSolver) or numeric (LocalSolver will then treat them as elements of class double).
Result of this function is named list of output expressions
added to the problem (for description of R data structures
add.output.expr). Parameters set
set.params are passed to LocalSolver by
means of generation(or modification) of LocalSolver
param function (see LocalSolver LSP language
for more details).
Make sure you pass integers in
data if you
want them to be
ints in LocalSolver. Otherwise they
will be considered
Errors occurred in model LSP code (passed while creating
ls.problem) are handled: They
cause error containing original error message and error
occurrence context to make it easier to detect potential
errors in model LSP code. All other LocalSolver errors
(e.g. in output expressions) and interaction errors
(between localsolver package and LocalSolver process) are
passed to caller without processing.
named list of all output expression values on best solution found.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.