Skip to content

Commit 92d4521

Browse files
authored
Fix gurobi solution names
1 parent d2d97e2 commit 92d4521

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/balance_LP.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ balance_LP <- function(z, X, importances, st, st_vals, S, q_s, N,
123123
return(NULL)
124124
}
125125
lpdetails <- o
126-
names(o)[c(6,7)] <- c("optimum", "solution")
126+
names(o)[names(o) == "objval"] <- "optimum"
127+
names(o)[names(o) == "x"] <- "solution"
127128
}
128129

129130
return(list(lpdetails = lpdetails, o = o))

0 commit comments

Comments
 (0)