Skip to contents

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

Super class

ConservationModifier -> Objective

Public fields

has_targets

logical value indicating if the objective supports targets. Values indicate that (TRUE) targets must be specified, (NA) targets are optional, and (FALSE) must are not used at all.

has_weights

logical value indicating if the objective supports feature weights.

Methods

Inherited methods


Objective$default_weights()

Specify default value for the feature weights.

Usage

Objective$default_weights()

Returns

A numeric value.


Objective$apply()

Update an optimization problem formulation.

Usage

Objective$apply(x)

Arguments

Returns

Invisible TRUE.


Objective$clone()

The objects of this class are cloneable with this method.

Usage

Objective$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.