Description Usage Arguments Details Value
These functions are used to access data from an
OptimizationProblem-class
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | nrow(x)
ncol(x)
ncell(x)
modelsense(x)
vtype(x)
obj(x)
A(x)
rhs(x)
sense(x)
lb(x)
ub(x)
number_of_features(x)
number_of_planning_units(x)
col_ids(x)
row_ids(x)
|
x |
|
The functions return the following data:
integer
number of rows (constraints).
integer
number of columns (decision variables).
integer
number of cells.
character
describing if the problem is to be
maximized ("max"
) or minimized ("min"
).
character
describing the type of each decision variable:
binary ("B"
), semi-continuous ("S"
), or continuous
("C"
)
numeric
vector specifying the objective function.
dgCMatrix-class
matrix object defining the
problem matrix.
numeric
vector with right-hand-side linear constraints
character
vector with the senses of the linear
constraints ("<="
, ">="
, "="
).
numeric
lower bound for each decision variable. Missing data
values (NA
) indicate no lower bound for a given variable.
numeric
upper bounds for each decision variable. Missing data
values (NA
) indicate no upper bound for a given variable.
integer
number of planning units in
the problem.
integer
number of features
the problem.
dgCMatrix-class
, numeric
vector,
numeric
vector, or scalar integer
depending on the method
used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.