Commit 4daba63d authored by Florian Gerber's avatar Florian Gerber
Browse files

v 1.0-1

parent 73418e0e
Package: optimParallel
Type: Package
Title: Parallel Version of the L-BFGS-B Optimization Method
Version: 1.0
Date: 2020-02-24
Version: 1.0-1
Date: 2020-04-21
Author: Florian Gerber
Maintainer: Florian Gerber <florian.gerber@math.uzh.ch>
Description: Provides a parallel version of the L-BFGS-B method of optim(). The main function of the package is optimParallel(), which has the same usage and output as optim(). Using optimParallel() can significantly reduce the optimization time.
......@@ -10,6 +10,6 @@ License: GPL (>= 2)
URL: https://git.math.uzh.ch/florian.gerber/optimParallel
BugReports: https://git.math.uzh.ch/florian.gerber/optimParallel/issues
Depends: R (>= 3.5), stats, parallel
Suggests: R.rsp, roxygen2, spam, microbenchmark, testthat, ggplot2, numDeriv, lbfgsb3, lbfgsb3c
Suggests: R.rsp, roxygen2, spam, microbenchmark, testthat, ggplot2, numDeriv, lbfgsb3c
VignetteBuilder: R.rsp
RoxygenNote: 7.0.2
- version 1.0-1:
commit 6f389aa916dc8cbc2398b2ed3635713a4ecf1778
Author: Florian Gerber <florian.gerber@math.uzh.ch>
Date: Tue Apr 21 15:26:15 2020 -0600
(1) pkg 'lbfgsb3' removed from suggest because the package has been archived.
(2) 'fn' and 'gr' can now have multiple arguments mixed with '...'.
- version 1.0:
commit 373ce0334eb05a7c382bd95d086b83966ceb64e1
Author: Florian Gerber <florian.gerber@math.uzh.ch>
Date: Mon Feb 24 17:51:45 2020 -0700
(1) bug fix: hessian has now correct sign if 'fnscale=-1'
(2) Vignette and citation info updated
(1) bug fix: hessian has now correct sign if 'fnscale=-1'.
(2) Vignette and citation info updated.
- version 0.8:
commit f0a8ed6e658cb481d549fd908d5640bf03abf394
......@@ -18,7 +25,7 @@ Date: Mon Feb 25 18:38:17 2019 +0100
commit 813a06269b6e777157fbe529bc62e38fc4d59de4
Author: Florian Gerber <florian.gerber@math.uzh.ch>
Date: Mon Oct 15 22:40:37 2018 -0600
(1) 'fn'. 'gr' can now be functions from other packages
(1) 'fn' and 'gr' can now be functions from other packages
calling compiled code, e.g.,
optimParallel(par=1, fn=dnorm, mean=3)
......
......@@ -335,6 +335,8 @@ getFunCallStr <- function(fn, fnName="fn", dots){
ff <- ff[-1]
if(all(names(ff) != "..."))
ff <- ff[names(ff) %in% names(dots)]
else
ff <- dots
if(length(ff)>=1){
ex <- paste0(ex, ",")
moreArgs <- paste(lapply(names(ff), function(x) paste0(x, "=", x)), collapse = ", ")
......
......@@ -102,4 +102,12 @@ test_that("optimParallel return correct sign of hessian if 'fnscale=-1'", {
verbose=verbose)
})
test_that("fn can have normal and ... aguments", {
fn <- function(par, data, ...) par^2
compareOptim(list(par=1, fn=fn, data=1:10,
control=control),
verbose=verbose)
})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment