addColsToProb-methods: Add New Columns (Variables) to an Optimization Problem

Description Usage Arguments Methods Note Author(s) See Also

Description

Add new columns (variables) to an optimization problem.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'optObj_clpAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)

## S4 method for signature 'optObj_cplexAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)

## S4 method for signature 'optObj_glpkAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)

## S4 method for signature 'optObj_lpSolveAPI'
addColsToProb(lp, j, obj, lb, ub, rind, nzval)

Arguments

lp

An object extending class optObj.

j

A numeric vector containing the new column indices.

obj

A numeric vector containing the objective coefficients of the new variables.

lb

A numeric vector containing the lower bounds of the new variables.

ub

A numeric vector containing the upper bounds of the new variables.

rind

A list containing the row indices of the new non-zero elements.

nzval

A list containing the new non-zero elements.

Methods

signature(lp = "optObj_clpAPI")

method to use with package optObj_clpAPI.

signature(lp = "optObj_cplexAPI")

method to use with package optObj_cplexAPI.

signature(lp = "optObj_glpkAPI")

method to use with package optObj_glpkAPI.

signature(lp = "optObj_lpSolveAPI")

method to use with package optObj_lpSolveAPI.

Note

Arguments j, obj, lb, lu, rind and nzval must have the same length.

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 documentation built on May 31, 2021, 5:08 p.m.