Learn R Programming

highs (version 1.10.0-1)

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

Value

An integer representing the number of constraints 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_ncons(model)

Run the code above in your browser using DataLab