powered by
This function defines whether a variable is categorized as integral or continuous.
hi_solver_set_integrality(solver, index, type)
The solver instance with updated integrality settings.
An object of class "highs_solver".
An integer specifying the variable index.
An integer representing the integrality type.
solver <- example_solver() hi_solver_set_integrality(solver, 1, 1)
Run the code above in your browser using DataLab