| OptimizationProblem-class {oppr} | R Documentation |
Optimization problem class
Description
The OptimizationProblem class is used to represent an optimization
problem. Data are stored in memory and accessed using an external pointer.
Only experts should interact with this class directly.
Fields
- $ptr
externalptrobject.- $data
listobject.
Usage
x$print()
x$show()
x$repr()
x$ncol()
x$nrow()
x$ncell()
x$modelsense()
x$vtype()
x$obj()
x$pwlobj()
x$A()
x$rhs()
x$sense()
x$lb()
x$ub()
x$number_of_projects()
x$number_of_actions()
x$number_of_features()
x$number_of_branches()
x$row_ids()
x$col_ids()
x$get_data()
Arguments
- ptr
externalptrobject.
Details
print the object.
- show
show the object.
- repr
characterrepresentation of object.- ncol
integernumber of columns (variables) in model matrix.- nrow
integernumber of rows (constraints) in model matrix.- ncell
integernumber of cells in model matrix.- modelsense
charactermodel sense.- vtype
charactervector of variable types.- obj
numericvector containing the linear components of the objective function.- pwlobj
listobject containing the piece-wise linear components of the objective function.- A
Matrix::dgCMatrix model matrix
- rhs
numericvector of right-hand-side constraints.- sense
charactervector of constraint senses.- lb
numericvector of lower bounds for each decision variable.- ub
numericvector of upper bounds for each decision variable.- number_of_projects
integernumber of projects in the problem.- number_of_actions
integernumber of actions in the problem.- number_of_features
integernumber of features in the problem.- number_of_branches
integernumber of phylogenetic branches in the problem.- col_ids
characternames describing each decision variable (column) in the model matrix.- row_ids
characternames describing each constraint (row) in in the model matrix.- get_data
listcontaining additional data.