hi_solver_change_variable_bounds: Change Variable Bounds

View source: R/solver-api.R

hi_solver_change_variable_boundsR Documentation

Change Variable Bounds

Description

This function updates the bounds of an existing variable in the model.

Usage

hi_solver_change_variable_bounds(solver, idx, lower, upper)

Arguments

solver

An object of class "highs_solver".

idx

An integer specifying the variable index.

lower

The new lower bound.

upper

The new upper bound.

Value

The solver instance with updated bounds.

Examples

solver <- example_solver()
hi_solver_change_variable_bounds(solver, 1, 0, 10)


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