hi_model_set_vartype: Set Variable Types in a Highs Model

View source: R/model-api.R

hi_model_set_vartypeR 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 "highs_model".

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)


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