hi_solver_get_num_row: Get Number of Constraints

View source: R/solver-api.R

hi_solver_get_num_rowR Documentation

Get Number of Constraints

Description

This function returns the number of constraints (rows) in the optimization model.

Usage

hi_solver_get_num_row(solver)

Arguments

solver

An object of class "highs_solver".

Value

An integer representing the number of constraints.

Examples

solver <- example_solver()
n_constraints <- hi_solver_get_num_row(solver)


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