Learn R Programming

highs (version 1.10.0-1)

hi_model_get_nvars: 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)

Value

An integer representing the number of variables in the model.

Arguments

model

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

Examples

Run this code
model <- hi_new_model()
hi_model_get_nvars(model)

Run the code above in your browser using DataLab