Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

## S4 method for signature 'optObj_cplexAPI'
changeMatrixRow(lp, i, j, val)

## S4 method for signature 'optObj_glpkAPI'
changeMatrixRow(lp, i, j, val)

## S4 method for signature '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.

Methods

signature(lp = "optObj_cplexAPI")

method to use with package optObj_cplexAPI. Only the columns given in argument j will be changed. All other columns stay the same.

signature(lp = "optObj_glpkAPI")

method to use with package optObj_glpkAPI. The row given in argument i will be reset completely.

signature(lp = "optObj_lpSolveAPI")

method to use with package optObj_lpSolveAPI. The row given in argument i will be reset completely.

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

See Also

Superclass optObj and constructor function optObj.


sybil

Efficient Constrained Based Modelling

v2.1.5
GPL-3 | file LICENSE
Authors
Mayo Roettger [cre], Gabriel Gelius-Dietrich [aut], C. Jonathan Fritzemeier [ctb], Rajen Piernikarczyk [ctb], Marc Andre Daxer [ctb], Benjamin Braasch [ctb], Abdelmoneim Desouki [ctb], Martin J. Lercher [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.