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)