add_lsymphony_solver {oppr} | R Documentation |
Add a SYMPHONY solver with lpsymphony
Description
Specify that the SYMPHONY software should be used to solve a
project prioritization problem()
using the lpsymphony
package. This function can also be used to customize the behavior of the
solver. It requires the lpsymphony package.
Usage
add_lpsymphony_solver(
x,
gap = 0,
time_limit = .Machine$integer.max,
first_feasible = FALSE,
verbose = TRUE
)
Arguments
x |
ProjectProblem object. |
gap |
|
time_limit |
|
first_feasible |
|
verbose |
|
Details
SYMPHONY is an open-source integer programming solver that is part of the Computational Infrastructure for Operations Research (COIN-OR) project, an initiative to promote development of open-source tools for operations research (a field that includes linear programming). The lpsymphony package is distributed through Bioconductor. This functionality is provided because the lpsymphony package may be easier to install to install on Windows and Mac OSX systems than the Rsymphony package.
Value
ProjectProblem object with the solver added to it.
See Also
Examples
## Not run:
# load data
data(sim_projects, sim_features, sim_actions)
# build problem with lpsymphony solver
p <- problem(sim_projects, sim_actions, sim_features,
"name", "success", "name", "cost", "name") %>%
add_max_richness_objective(budget = 200) %>%
add_binary_decisions() %>%
add_lpsymphony_solver()
# print problem
print(p)
# solve problem
s <- solve(p)
# print solution
print(s)
# plot solution
plot(p, s)
## End(Not run)