hi_solver_change_variable_bounds {highs}R 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)


[Package highs version 1.10.0-2 Index]