hi_model_set_vartype {highs} | R Documentation |
Set Variable Types in a Highs Model
Description
This function sets the variable types in a given Highs model.
Usage
hi_model_set_vartype(model, types)
Arguments
model |
an object of class |
types |
an integer vector specifying the types of the variables. |
Value
The function does not return a value. It modifies the 'model' object in place.
Examples
model <- hi_new_model()
types <- c(1, 2, 1, 0)
hi_model_set_vartype(model, types)
[Package highs version 1.10.0-2 Index]