Skip to content

Commit

Permalink
Update method.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ecpolley committed May 16, 2016
1 parent 8f9b0fb commit fd1f0fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions R/method.R
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ method.AUC <- function(nlopt_method = NULL, optim_method = "L-BFGS-B",
stop("Please supply either a nlopt or optim method; one of these must be set to NULL.")
}

#if (length(optim_method) > 0) {
# if (length(intersect(optim_method, c("Nelder-Mead", "BFGS", "CG", "L-BFGS-B", "SANN"))) == 0) {
if (!is.null(optim_method)) {
if (!(optim_method %in% c("Nelder-Mead", "BFGS", "CG", "L-BFGS-B", "SANN"))) {
stop("supplied 'optim_method' value not supported")
Expand Down

0 comments on commit fd1f0fa

Please sign in to comment.