powered by
This function sets the number of columns in the given model.
hi_model_set_ncol(model, ncol)
NULL
an object of class "highs_model".
"highs_model"
an integer giving the number of columns (variables) to set in the model
model <- hi_new_model() hi_model_set_ncol(model, 10L) # Sets the model to have 10 columns
Run the code above in your browser using DataLab