
Conservation problem modifier class
Source:R/ConservationModifier-class.R
ConservationModifier-class.RdThis 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
namecharactervalue.datalistcontaining data.internallistcontaining internal computed values.compressed_formulationlogicalvalue indicating if the object is compatible with a compressed formulation.
Methods
ConservationModifier$repr()
Generate a character representation of the object.
ConservationModifier$calculate()
Perform computations that need to be completed before applying the object.
Arguments
xoptimization_problem()object.yproblem()object.
ConservationModifier$get_data()
Get values stored in the data field.
Returns
An object. If the data field does not contain an object
associated with x, then a new_waiver() object is
returned.
ConservationModifier$set_data()
Set values stored in the data field. Note that this method will
overwrite existing data.
ConservationModifier$get_internal()
Get values stored in the internal field.
Returns
An object. If the internal field does not contain an object
associated with x, then a new_waiver() object is
returned.
ConservationModifier$set_internal()
Set values stored in the internal field. Note that this method will
overwrite existing data.