Learn R Programming

lpmodeler (version 0.2-1)

setCoeff: Set the coefficient of a variable in a contraint of a LP or MIP given their indexes

Description

setCoef sets the coefficient of a variable in a contraint of a linear program (LP) or mixed integer program (MIP) given its numeric indexes in the problem matrix.

Usage

setCoeff(p, v, c, x)

Arguments

p
an object of class lpmodeler
v
index of the variable in the problem matrix (column)
c
index of the constraint in the problem matrix (row)
x
value of the coefficient

Value

An object of class lpmodeler.

See Also

TODO

Examples

Run this code
# TODO

Run the code above in your browser using DataLab