powered by
This function updates the bounds of an existing variable in the model.
hi_solver_change_variable_bounds(solver, idx, lower, upper)
The solver instance with updated bounds.
An object of class "highs_solver".
An integer specifying the variable index.
The new lower bound.
The new upper bound.
solver <- example_solver() hi_solver_change_variable_bounds(solver, 1, 0, 10)
Run the code above in your browser using DataLab