hi_solver_get_num_col: Get Number of Variables

View source: R/solver-api.R

hi_solver_get_num_colR Documentation

Get Number of Variables

Description

This function returns the number of variables (columns) in the optimization model.

Usage

hi_solver_get_num_col(solver)

Arguments

solver

An object of class "highs_solver".

Value

An integer representing the number of variables.

Examples

solver <- example_solver()
n_vars <- hi_solver_get_num_col(solver)


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