Learn R Programming

highs (version 1.10.0-1)

hi_solver_set_options: Set Multiple HiGHS Solver Options

Description

Sets multiple options for a HiGHS solver instance at once.

Usage

hi_solver_set_options(solver, control = list())

Value

Invisibly returns NULL.

Arguments

solver

A HiGHS solver object of class "highs_solver".

control

A named list of options to set. Names should be valid option names and values will be coerced to the appropriate types.

Examples

Run this code
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)

Run the code above in your browser using DataLab