Learn R Programming

highs (version 1.10.0-1)

hi_solver_change_variable_bounds: 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)

Value

The solver instance with updated bounds.

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.

Examples

Run this code
solver <- example_solver()
hi_solver_change_variable_bounds(solver, 1, 0, 10)

Run the code above in your browser using DataLab