hi_model_set_ncol: Sets the number of columns in the model

View source: R/model-api.R

hi_model_set_ncolR 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

highs documentation built on June 8, 2025, 10:36 a.m.