hi_model_get_nvars: Get Number of Variables in a Highs Model

View source: R/model-api.R

hi_model_get_nvarsR Documentation

Get Number of Variables in a Highs Model

Description

This function retrieves the number of variables in a given Highs model.

Usage

hi_model_get_nvars(model)

Arguments

model

A 'highs_model' object. The model from which to get the number of variables.

Value

An integer representing the number of variables in the model.

Examples

model <- hi_new_model()
hi_model_get_nvars(model)


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