Costs object is used to define additional costs to add to the model's objective function.
Slots
name
character. Name of the cost object, used in sets.
desc
character. Description of the cost object for own references.
variable
character. Name of the variable included in the costs-constraint.
subset
data.frame. Named list or data frame with set-values for each dimension of the variable. This slot subsets the variable to the specified set values.
mult
data.frame. Named list or data frame with numeric values for the variable included in the costs-constraint. A constant or a data frame with the same dimensions as the subseted variable.
misc
list. Additional information.
See also
Other class constraint policy:
class-constraint
,
newConstraint()
,
newCosts()
,
newSubsidy()
,
newTax()
,
subsidy-class
,
tax-class