Learn R Programming

sybil (version 1.1.2)

changeMatrixRow-methods: Change a Row in the Constraint Matrix of the Optimization Problem

Description

Change a row in the constraint matrix of the optimization problem.

Usage

## S3 method for class 'optObj_cplexAPI':
changeMatrixRow(lp, i, j, val)

## S3 method for class 'optObj_glpkAPI': changeMatrixRow(lp, i, j, val)

## S3 method for class 'optObj_lpSolveAPI': changeMatrixRow(lp, i, j, val)

Arguments

lp
An object extending class optObj.
i
A single numeric value giving the row index of the constraint matrix to change.
j
A numeric vector containing the column indices of the new non-zero elements.
val
A numeric vector of the same length as j containing the new non-zero elements.

encoding

utf8

See Also

Superclass optObj and constructor function optObj.