| TargetMethod-class | R Documentation |
This class is used to represent methods for setting targets. Only experts should use the fields and methods for this class directly.
namecharacter value with name of method.
typecharacter value denoting the target type.
funfunction for calculating targets.
argslist containing arguments.
framedefused 'call for generating error messages.
new()Initialize new object.
TargetMethod$new(name, type, fun, args, frame)
namecharacter value with name of method.
typecharacter value denoting the target type.
Available options include "relative" and "absolute".
funfunction for calculating targets.
argslist containing arguments.
framedefused 'call for generating error messages.
A new Method object.
print()Print the object.
TargetMethod$print(...)
...not used.
Invisible TRUE.
calculate_targets()Calculate targets expressed in the type of units defined for the method
(per $type).
TargetMethod$calculate_targets(x, features, call = NULL)
xproblem() object.
featuresinteger feature indices.
callNULL or calling environment.
A numeric vector with target values.
calculate_targets_km2()Calculate targets as km2.
TargetMethod$calculate_targets_km2(x, features, call = NULL)
xproblem() object.
featuresinteger feature indices.
callNULL or calling environment.
A numeric vector with target values expressed in
km2.
calculate_relative_targets()Calculate targets as km2.
TargetMethod$calculate_relative_targets(x, features, call = NULL)
xproblem() object.
featuresinteger feature indices.
callNULL or calling environment.
A numeric vector with target values expressed as relative
units.
calculate_absolute_targets()Calculate targets expressed as absolute units.
TargetMethod$calculate_absolute_targets(x, features, call = NULL)
xproblem() object.
featuresinteger feature indices.
callNULL or calling environment.
A numeric vector with target values expressed as
absolute units.
clone()The objects of this class are cloneable with this method.
TargetMethod$clone(deep = FALSE)
deepWhether to make a deep clone.
Other classes:
ConservationModifier-class,
ConservationProblem-class,
Constraint-class,
Decision-class,
Objective-class,
OptimizationProblem-class,
Penalty-class,
Portfolio-class,
Solver-class,
Target-class,
Weight-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.