powered by
This function retrieves the number of variables in a given Highs model.
hi_model_get_nvars(model)
An integer representing the number of variables in the model.
A `highs_model` object. The model from which to get the number of variables.
model <- hi_new_model() hi_model_get_nvars(model)
Run the code above in your browser using DataLab