Skip to content

Commit

Permalink
Temp update without gurobi
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreifer committed Nov 12, 2024
1 parent d84ebf1 commit bcee422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Imports:
Rcpp,
utils,
stats,
graphics
graphics,
grDevices
Suggests:
optmatch (>= 0.10.6),
Matching,
Expand All @@ -56,7 +57,6 @@ Suggests:
highs,
Rglpk,
Rsymphony,
gurobi,
knitr,
rmarkdown,
testthat (>= 3.0.0)
Expand Down
6 changes: 3 additions & 3 deletions R/matchit2cardinality.R
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,9 @@ dispatch_optimizer <- function(solver = "glpk", obj, mat, dir, rhs, types, max =
dir[dir == "<="] <- "<"
dir[dir == ">="] <- ">"
dir[dir == "=="] <- "="
opt.out <- gurobi::gurobi(list(A = mat, obj = obj, sense = dir, rhs = rhs, vtype = types,
modelsense = "max", lb = lb, ub = ub),
params = list(OutputFlag = as.integer(verbose), TimeLimit = time))
# opt.out <- gurobi::gurobi(list(A = mat, obj = obj, sense = dir, rhs = rhs, vtype = types,
# modelsense = "max", lb = lb, ub = ub),
# params = list(OutputFlag = as.integer(verbose), TimeLimit = time))
}
else if (solver == "highs") {
rhs_h <- lhs_h <- rhs
Expand Down

0 comments on commit bcee422

Please sign in to comment.