powered by
This function assigns a coefficient value to a specific entry in the constraint matrix.
hi_solver_set_coeff(solver, row, col, val)
The solver instance with the updated coefficient.
An object of class "highs_solver".
The row index.
The column index.
The coefficient value.
solver <- example_solver() hi_solver_set_coeff(solver, 1, 1, 4.2)
Run the code above in your browser using DataLab