hi_solver_run: Run the Solver

View source: R/solver-api.R

hi_solver_runR Documentation

Run the Solver

Description

Executes the optimization solver on the current model.

Usage

hi_solver_run(solver, verbose = FALSE)

Arguments

solver

An object of class "highs_solver".

verbose

a logical if TRUE, prints solver log messages to the console.

Details

Solver output is controlled by the 'output_flag' option: use 'hi_solver_set_option(solver, "output_flag", "off")' to suppress logging.

Value

An integer status code (-1 = error, 0 = success, 1 = warning).

Examples

solver <- example_solver()
hi_solver_run(solver)


highs documentation built on June 8, 2026, 9:06 a.m.