if (FALSE) {
# glpk is already the default
options(FDOTT.lp_solver = "glpk")}
# plugin needs to be installed, else we get error
if (requireNamespace("ROI.plugin.glpk")) {
# add control parameter (specific to glpk)
sol <- ot_test_lp_solver("glpk", verbose = TRUE)
print(sol)
} else {
cat("'ROI.plugin.glpk' needs to be installed!\n")
}
Run the code above in your browser using DataLab