Conservation problem modifier class
Source:R/ConservationModifier-class.R
ConservationModifier-class.Rd
This super-class is used to construct Objective
Penalty
, Target
, Constraint
,
Portfolio
, Solver
, and Decision
objects.
Only experts should use the fields and methods for this class directly.
Public fields
name
character
value.data
list
containing data.internal
list
containing internal computed values.compressed_formulation
logical
value indicating if the object is compatible with a compressed formulation.
Methods
Method repr()
Generate a character representation of the object.
Method calculate()
Perform computations that need to be completed before applying the object.
Arguments
x
optimization_problem()
object.y
problem()
object.
Method get_data()
Get values stored in the data
field.
Returns
An object. If the data
field does not contain an object
associated with the argument to x
, then a new_waiver()
object is
returned.
Method set_data()
Set values stored in the data
field. Note that this method will
overwrite existing data.
Method get_internal()
Get values stored in the internal
field.
Returns
An object. If the internal
field does not contain an object
associated with the argument to x
, then a new_waiver()
object is
returned.
Method set_internal()
Set values stored in the internal
field. Note that this method will
overwrite existing data.
Returns
An object. If the internal
field does not contain an object
associated with the argument to x
, then a new_waiver()
object is
returned.