Learn R Programming

highs (version 1.10.0-1)

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

Value

The solver instance with the updated coefficient.

Arguments

solver

An object of class "highs_solver".

row

The row index.

col

The column index.

val

The coefficient value.

Examples

Run this code
solver <- example_solver()
hi_solver_set_coeff(solver, 1, 1, 4.2)

Run the code above in your browser using DataLab