hi_model_set_ncol {highs}R Documentation

Sets the number of columns in the model

Description

This function sets the number of columns in the given model.

Usage

hi_model_set_ncol(model, ncol)

Arguments

model

an object of class "highs_model".

ncol

an integer giving the number of columns (variables) to set in the model

Value

NULL

Examples

model <- hi_new_model()
hi_model_set_ncol(model, 10L) # Sets the model to have 10 columns

[Package highs version 1.10.0-2 Index]