Learn R Programming

sybil (version 1.1.2)

addRowsCols-methods: Add Rows and Columns to an Optimization Problem

Description

Add rows and columns to an optimization problem.

Usage

## S3 method for class 'optObj_clpAPI,numeric,numeric':
addRowsCols(lp, nrows, ncols)

## S3 method for class 'optObj_cplexAPI,numeric,numeric': addRowsCols(lp, nrows, ncols)

## S3 method for class 'optObj_glpkAPI,numeric,numeric': addRowsCols(lp, nrows, ncols)

## S3 method for class 'optObj_lpSolveAPI,numeric,numeric': addRowsCols(lp, nrows, ncols)

Arguments

lp
An object extending class optObj.
nrows
Number of rows (constraints) to add to the problem object.
ncols
Number of columns (variables) to add to the problem object.

encoding

utf8

See Also

Superclass optObj and constructor function optObj.