hi_solver_get_option: Get a HiGHS Solver Option

View source: R/options.R

hi_solver_get_optionR Documentation

Get a HiGHS Solver Option

Description

Retrieves the value of a specific option from a HiGHS solver instance.

Usage

hi_solver_get_option(
  solver,
  key,
  type = c("auto", "bool", "integer", "double", "string")
)

Arguments

solver

A HiGHS solver object of class "highs_solver".

key

A character string specifying the option name to retrieve.

type

Type of the option. Can be one of "auto", "bool", "integer", "double", or "string". When set to "auto" (default), the function will attempt to determine the type from the available options list. Specify a type directly if the option is valid but not listed in the available options.

Value

The value of the specified option with the appropriate type.

Examples

solver <- example_solver()
hi_solver_get_option(solver, "output_flag")
hi_solver_get_option(solver, "solver", type = "string")

highs documentation built on June 8, 2025, 10:36 a.m.