powered by
This function updates the bounds of an existing constraint in the model.
hi_solver_change_constraint_bounds(solver, idx, lhs, rhs)
The solver instance with updated constraint bounds.
An object of class "highs_solver".
An integer vector specifying the constraint indices.
The new left-hand side bound.
The new right-hand side bound.
solver <- example_solver() hi_solver_change_constraint_bounds(solver, 1, -Inf, 100)
Run the code above in your browser using DataLab