powered by
This function returns the number of constraints (rows) in the optimization model.
hi_solver_get_num_row(solver)
An integer representing the number of constraints.
An object of class "highs_solver".
solver <- example_solver() n_constraints <- hi_solver_get_num_row(solver)
Run the code above in your browser using DataLab