Skip to content

Commit

Permalink
Allow use of equality constraints with COBYLA. Closes #135.
Browse files Browse the repository at this point in the history
  • Loading branch information
astamm committed Oct 4, 2023
1 parent 009b3de commit 1264f8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/is.nloptr.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ is.nloptr <- function(x) {
"NLOPT_LD_AUGLAG_EQ",
"NLOPT_LN_AUGLAG_EQ",
"NLOPT_GN_ISRES",
"NLOPT_LD_SLSQP")
"NLOPT_LD_SLSQP",
"NLOPT_LN_COBYLA")
if (!(x$options$algorithm %in% eq_algorithms)) {
stop("If you want to use equality constraints, ",
"then you should use one of these algorithms ",
Expand Down

0 comments on commit 1264f8c

Please sign in to comment.