Learn R Programming

highs (version 1.10.0-1)

hi_solver_set_offset: Set the objective offset for the solver.

Description

This function sets the objective offset in the solver instance.

Usage

hi_solver_set_offset(solver, ext_offset)

Value

The solver instance with the updated offset.

Arguments

solver

An object of class "highs_solver".

ext_offset

A numeric value representing the offset.

Examples

Run this code
solver <- example_solver()
hi_solver_set_offset(solver, 5.0)

Run the code above in your browser using DataLab