hi_solver_set_options {highs} | R Documentation |
Set Multiple HiGHS Solver Options
Description
Sets multiple options for a HiGHS solver instance at once.
Usage
hi_solver_set_options(solver, control = list())
Arguments
solver |
A HiGHS solver object of class |
control |
A named list of options to set. Names should be valid option names and values will be coerced to the appropriate types. |
Value
Invisibly returns NULL.
Examples
solver <- example_solver()
hi_solver_set_options(solver, list(output_flag = FALSE, solver = "simplex"))
control <- list(
presolve = "on",
solver = "simplex",
parallel = "on",
ranging = "off",
time_limit = 100.0,
primal_feasibility_tolerance = 1e-7,
dual_feasibility_tolerance = 1e-7,
random_seed = 1234,
threads = 4,
output_flag = TRUE,
log_to_console = TRUE,
run_crossover = "on",
allow_unbounded_or_infeasible = FALSE,
mip_detect_symmetry = TRUE,
mip_max_nodes = 10000,
mip_max_leaves = 5000,
mip_feasibility_tolerance = 1e-6
)
hi_solver_set_options(solver, control)
[Package highs version 1.10.0-3 Index]