Learn R Programming

highs (version 1.10.0-1)

hi_solver_set_variable_bounds: Set variable bounds for a given variable.

Description

This function sets the lower and upper bounds for a specific variable.

Usage

hi_solver_set_variable_bounds(solver, index, lower, upper)

Value

The solver instance with updated variable bounds.

Arguments

solver

An object of class "highs_solver".

index

The variable index.

lower

The lower bound.

upper

The upper bound.

Examples

Run this code
solver <- example_solver()
hi_solver_set_variable_bounds(solver, 2, 0, 10)

Run the code above in your browser using DataLab