Learn R Programming

highs (version 1.10.0-1)

hi_solver_set_integrality: Set integrality for a variable in the solver.

Description

This function defines whether a variable is categorized as integral or continuous.

Usage

hi_solver_set_integrality(solver, index, type)

Value

The solver instance with updated integrality settings.

Arguments

solver

An object of class "highs_solver".

index

An integer specifying the variable index.

type

An integer representing the integrality type.

Examples

Run this code
solver <- example_solver()
hi_solver_set_integrality(solver, 1, 1)

Run the code above in your browser using DataLab