| ConservationModifier-class | R Documentation |
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.
namecharacter value.
datalist containing data.
internallist containing internal computed values.
compressed_formulationlogical value indicating if the
object is compatible with a compressed formulation.
print()Print information about the object.
ConservationModifier$print()
None.
show()Print information about the object.
ConservationModifier$show()
None.
repr()Generate a character representation of the object.
ConservationModifier$repr(compact = TRUE)
compactlogical value indicating if the output value
should be compact? Defaults to FALSE.
A character value.
calculate()Perform computations that need to be completed before applying the object.
ConservationModifier$calculate(x, y)
xoptimization_problem() object.
yproblem() object.
Invisible TRUE.
get_data()Get values stored in the data field.
ConservationModifier$get_data(x)
xcharacter name of data.
An object. If the data field does not contain an object
associated with the argument to x, then a new_waiver() object is
returned.
set_data()Set values stored in the data field. Note that this method will
overwrite existing data.
ConservationModifier$set_data(x, value)
xcharacter name of data.
valueObject to store.
Invisible TRUE.
get_internal()Get values stored in the internal field.
ConservationModifier$get_internal(x)
xcharacter name of data.
An object. If the internal field does not contain an object
associated with the argument to x, then a new_waiver() object is
returned.
set_internal()Set values stored in the internal field. Note that this method will
overwrite existing data.
ConservationModifier$set_internal(x, value)
xcharacter name of data.
valueObject to store.
An object. If the internal field does not contain an object
associated with the argument to x, then a new_waiver() object is
returned.
clone()The objects of this class are cloneable with this method.
ConservationModifier$clone(deep = FALSE)
deepWhether to make a deep clone.
Other classes:
ConservationProblem-class,
Constraint-class,
Decision-class,
Objective-class,
OptimizationProblem-class,
Penalty-class,
Portfolio-class,
Solver-class,
Target-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.