diff --git a/DESCRIPTION b/DESCRIPTION index f88b9715..9fa6b572 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -48,7 +48,6 @@ Suggests: randomForest (>= 4.7-1), glmnet (>= 4.0), gbm (>= 2.1.7), - gurobi, cobalt (>= 4.2.3), boot, marginaleffects (>= 0.19.0), diff --git a/R/matchit2cardinality.R b/R/matchit2cardinality.R index e5a1a8fc..3095ca88 100644 --- a/R/matchit2cardinality.R +++ b/R/matchit2cardinality.R @@ -719,14 +719,14 @@ dispatch_optimizer <- function(solver = "highs", obj, mat, dir, rhs, types, max # bounds = list(lower = lb, upper = ub), #Spurious warning when using bounds time_limit = time) } - else if (solver == "gurobi") { - 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)) - } + # else if (solver == "gurobi") { + # 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)) + # } else if (solver == "highs") { rhs_h <- lhs_h <- rhs