Description Usage Arguments Details Value See Also Examples
View source: R/add_rsymphony_solver.R
Specify that the SYMPHONY software should be used to solve a
project prioritization problem()
using the Rsymphony
package. This function can also be used to customize the behavior of the
solver. It requires the Rsymphony package.
1 2 3 4 5 6 7  add_rsymphony_solver(
x,
gap = 0,
time_limit = .Machine$integer.max,
first_feasible = FALSE,
verbose = TRUE
)

x 
ProjectProblem object. 
gap 

time_limit 

first_feasible 

verbose 

SYMPHONY is an opensource integer programming solver that is part of the Computational Infrastructure for Operations Research (COINOR) project, an initiative to promote development of opensource tools for operations research (a field that includes linear programming). The Rsymphony package provides an interface to COINOR and is available on CRAN. This solver uses the Rsymphony package to solve problems.
ProjectProblem object with the solver added to it.
solvers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  ## Not run:
# load data
data(sim_projects, sim_features, sim_actions)
# build problem with Rsymphony solver
p < problem(sim_projects, sim_actions, sim_features,
"name", "success", "name", "cost", "name") %>%
add_max_richness_objective(budget = 200) %>%
add_binary_decisions() %>%
add_rsymphony_solver()
# print problem
print(p)
# solve problem
s < solve(p)
# print solution
print(s)
# plot solution
plot(p, s)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.