powered by
This function sets the lower and upper bounds for a specific variable.
hi_solver_set_variable_bounds(solver, index, lower, upper)
The solver instance with updated variable bounds.
An object of class "highs_solver".
The variable index.
The lower bound.
The upper bound.
solver <- example_solver() hi_solver_set_variable_bounds(solver, 2, 0, 10)
Run the code above in your browser using DataLab