hi_solver_get_num_col {highs}R 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)


[Package highs version 1.10.0-3 Index]