hi_model_set_nrow: Set the number of rows in the model

View source: R/model-api.R

hi_model_set_nrowR Documentation

Set the number of rows in the model

Description

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

Usage

hi_model_set_nrow(model, nrow)

Arguments

model

an object of class "highs_model".

nrow

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

Value

NULL

Examples

model <- hi_new_model()
hi_model_set_nrow(model, 5L) # Sets the model to have 5 rows

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