Description Usage Arguments Value Examples
Updates the chosen parameters of an object of class
ls.problem.
| 1 2 3 4 5 6 7 | set.params(lsp, lsTimeLimit = lsp$params$lsTimeLimit,
  lsIterationLimit = lsp$params$lsIterationLimit,
  lsTimeBetweenDisplays = lsp$params$lsTimeBetweenDisplays,
  lsSeed = lsp$params$lsSeed, lsNbThreads = lsp$params$lsNbThreads,
  lsAnnealingLevel = lsp$params$lsAnnealingLevel,
  lsVerbosity = lsp$params$lsVerbosity,
  indexFromZero = lsp$params$indexFromZero)
 | 
| lsp | problem instance created with
 | 
| lsTimeLimit | the number of the seconds which will be spent to optimize the objective function (functions), or a vector of times (in seconds) assigned to each objective function. The length of the vector should correspond to the length of the number of objective functions. | 
| lsIterationLimit | the number of iterations made to optimize the objective function (functions), or a vector of iteration numbers assigned to each objective function. The length of the vector should correspond to the length of the number of objective functions. | 
| lsTimeBetweenDisplays | the time (in seconds) between successive displays of the information about the search (default: 1) | 
| lsSeed | pseudo-random number generator seed (default: 0). | 
| lsNbThreads | the number of threads over which the search is paralleled (default: 2). | 
| lsAnnealingLevel | simulated annealing level (no annealing: 0, default: 1). | 
| lsVerbosity | verbosity (no display: 0, default: 1). | 
| indexFromZero | indicates whether the data and
decision variables (vectors and matrices) are to be
indexed from 0. If  | 
updated ls.problem instance.
| 1 2 3 | model.text.lsp <- lsp.model.example('extdata/knapsack.txt')
lsp <- ls.problem(model.text.lsp)
lsp <- set.params(lsp, lsTimeLimit=10, lsIterationLimit= 5)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.