Learn R Programming

highs (version 1.10.0-1)

hi_solver_get_num_row: Get Number of Constraints

Description

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

Usage

hi_solver_get_num_row(solver)

Value

An integer representing the number of constraints.

Arguments

solver

An object of class "highs_solver".

Examples

Run this code
solver <- example_solver()
n_constraints <- hi_solver_get_num_row(solver)

Run the code above in your browser using DataLab