Learn R Programming

highs (version 1.14.0-2)

hi_solver_run: Run the Solver

Description

Executes the optimization solver on the current model.

Usage

hi_solver_run(solver, verbose = FALSE)

Value

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

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.

Examples

Run this code
solver <- example_solver()
hi_solver_run(solver)

Run the code above in your browser using DataLab