Skip to content

Commit

Permalink
enable solver plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Waschina committed Jun 10, 2024
1 parent 94be9d5 commit ebb4c43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import(Matrix)
importFrom(Rcpp,evalCpp)
importFrom(methods,.valueClassTest)
importFrom(methods,as)
importFrom(methods,existsMethod)
importFrom(methods,is)
importFrom(methods,new)
importFrom(stats,aggregate)
Expand Down
4 changes: 2 additions & 2 deletions R/cobrar.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ NULL
#' @param value Choose a value to over-write the current parameter.
#' @param ... TBD.
#'
#' @importFrom methods existsMethod
#'
#' @export
COBRAR_SETTINGS <- function(parm, value, ...) {

Expand All @@ -86,8 +88,6 @@ COBRAR_SETTINGS <- function(parm, value, ...) {
},

"SOLVER" = {
if(value != "glpk")
warning("Currently, only glpk is supported as solver.")
.COBRARenv$settings[["SOLVER"]] <- as.character(value)
},

Expand Down

0 comments on commit ebb4c43

Please sign in to comment.