Learn R Programming

highs (version 1.10.0-1)

hi_solver_get_num_col: Get Number of Variables

Description

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

Usage

hi_solver_get_num_col(solver)

Value

An integer representing the number of variables.

Arguments

solver

An object of class "highs_solver".

Examples

Run this code
solver <- example_solver()
n_vars <- hi_solver_get_num_col(solver)

Run the code above in your browser using DataLab