reset.lsp.params {localsolver}R Documentation

Reset all ls.problem instance parameters.

Description

Problem parameters can be set with set.params. This method resets all their values to defaults, which have been described in help for the set.params function.

Usage

reset.lsp.params(lsp)

Arguments

lsp

the lsp object whose parameters are to be reset.

Value

lsp object with all parameters reset to their default values.

Examples

modelText <- lsp.model.example('extdata/knapsack.txt')
lsp <- ls.problem(modelText)
lsp$params
lsp <- set.params(lsp, lsTimeLimit=60, lsSeed=7)
lsp$params
lsp <- reset.lsp.params(lsp)
lsp$params

[Package localsolver version 2.3 Index]