Learn R Programming

sybil (version 2.0.0)

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

Description

Add new columns (variables) to an optimization problem.

Usage

# S4 method for optObj_clpAPI
addColsToProb(lp, j, obj, lb, ub, rind, nzval)

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

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

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

See Also

Superclass '>optObj and constructor function optObj.