Learn R Programming

prioritizr (version 8.1.0)

Objective-class: Objective class

Description

This class is used to represent the objective function used in optimization. Only experts should use the fields and methods for this class directly.

Arguments

Super class

prioritizr::ConservationModifier -> Objective

Public fields

has_targets

logical value indicating if the objective supports targets.

has_weights

logical value indicating if the objective supports feature weights.

Methods

Inherited methods


Method default_weights()

Specify default value for the feature weights.

Usage

Objective$default_weights()

Returns

A numeric value.


Method apply()

Update an optimization problem formulation.

Usage

Objective$apply(x)

Arguments

x

optimization_problem() object.

Returns

Invisible TRUE.


Method clone()

The objects of this class are cloneable with this method.

Usage

Objective$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

Other classes: ConservationModifier-class, ConservationProblem-class, Constraint-class, Decision-class, OptimizationProblem-class, Penalty-class, Portfolio-class, Solver-class, Target-class, TargetMethod-class, Weight-class