This class is used to represent an optimization problem.
It stores the information needed to generate a solution using
an exact algorithm solver.
Most users should use compile()
to generate new optimization problem
objects, and the functions distributed with the package to interact
with them (e.g., base::as.list()
).
Only experts should use the fields and methods for this class directly.
ptr
A Rcpp::Xptr
external pointer.
Create a new optimization problem object.
new()
OptimizationProblem$new(ptr)
print()
Print concise information about the object.
show()
Print concise information about the object.
ncol()
Obtain the number of columns in the problem formulation.
nrow()
Obtain the number of rows in the problem formulation.
ncell()
Obtain the number of cells in the problem formulation.
modelsense()
Obtain the model sense.
vtype()
Obtain the decision variable types.
obj()
Obtain the objective function.
rhs()
Obtain the right-hand-side constraint values.
sense()
Obtain the constraint senses.
lb()
Obtain the lower bounds for the decision variables.
ub()
Obtain the upper bounds for the decision variables.
number_of_features()
Obtain the number of features.
number_of_planning_units()
Obtain the number of planning units.
number_of_zones()
Obtain the number of zones.
col_ids()
Obtain the identifiers for the columns.
row_ids()
Obtain the identifiers for the rows.
compressed_formulation()
Is the problem formulation compressed?