hi_solver_set_coeff: Set a coefficient in the constraint matrix.

View source: R/solver-api.R

hi_solver_set_coeffR Documentation

Set a coefficient in the constraint matrix.

Description

This function assigns a coefficient value to a specific entry in the constraint matrix.

Usage

hi_solver_set_coeff(solver, row, col, val)

Arguments

solver

An object of class "highs_solver".

row

The row index.

col

The column index.

val

The coefficient value.

Value

The solver instance with the updated coefficient.

Examples

solver <- example_solver()
hi_solver_set_coeff(solver, 1, 1, 4.2)


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