Learn R Programming

highs (version 1.10.0-1)

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

Value

The solver instance with updated constraint bounds.

Arguments

solver

An object of class "highs_solver".

index

The constraint index.

lower

The lower bound.

upper

The upper bound.

Examples

Run this code
solver <- example_solver()
hi_solver_set_constraint_bounds(solver, 1, -Inf, 100)

Run the code above in your browser using DataLab