Learn R Programming

highs (version 1.10.0-1)

hi_model_set_ncol: Sets the number of columns in the model

Description

This function sets the number of columns in the given model.

Usage

hi_model_set_ncol(model, ncol)

Value

NULL

Arguments

model

an object of class "highs_model".

ncol

an integer giving the number of columns (variables) to set in the model

Examples

Run this code
model <- hi_new_model()
hi_model_set_ncol(model, 10L) # Sets the model to have 10 columns

Run the code above in your browser using DataLab