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