hi_model_get_ncons: Get Number of Constraints in a Model

View source: R/model-api.R

hi_model_get_nconsR Documentation

Get Number of Constraints in a Model

Description

This function retrieves the number of constraints in a given 'highs_model' object.

Usage

hi_model_get_ncons(model)

Arguments

model

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

Value

An integer representing the number of constraints in the model.

Examples

model <- hi_new_model()
hi_model_get_ncons(model)


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