hi_solver_set_constraint_bounds: Set constraint bounds for a given constraint.

View source: R/solver-api.R

hi_solver_set_constraint_boundsR Documentation

Set constraint bounds for a given constraint.

Description

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

Usage

hi_solver_set_constraint_bounds(solver, index, lower, upper)

Arguments

solver

An object of class "highs_solver".

index

The constraint index.

lower

The lower bound.

upper

The upper bound.

Value

The solver instance with updated constraint bounds.

Examples

solver <- example_solver()
hi_solver_set_constraint_bounds(solver, 1, -Inf, 100)


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