hi_solver_set_variable_bounds: Set variable bounds for a set of variables.

View source: R/solver-api.R

hi_solver_set_variable_boundsR Documentation

Set variable bounds for a set of variables.

Description

This function sets the lower and upper bounds for a set of variables.

Usage

hi_solver_set_variable_bounds(solver, index, lower, upper)

Arguments

solver

An object of class "highs_solver".

index

The variable index.

lower

The lower bound.

upper

The upper bound.

Value

The solver instance with updated variable bounds.

Examples

solver <- example_solver()
hi_solver_set_variable_bounds(solver, 2, 0, 10)


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