Class Objective

java.lang.Object
org.opt4j.core.Criterion
org.opt4j.core.Objective
All Implemented Interfaces:
Comparable<Objective>

public class Objective extends Criterion implements Comparable<Objective>

The Objective is the identifier for a single objective in the Objectives. It is specified by the following properties:

  • Name
  • Minimization or Maximization
  • Rank (use for ordering)

Each Evaluator sets a specific amount of Objective- Value pairs.

Use the ObjectivesMonitor to get all Objectives of the optimization task.

See Also:
  • Field Details

    • RANK_OBJECTIVE

      public static final int RANK_OBJECTIVE
      Standard rank of an objective (0).
      See Also:
    • RANK_ERROR

      public static final int RANK_ERROR
      High priority rank (-100).
      See Also:
    • INFEASIBLE

      public static final Value<?> INFEASIBLE
      Identifier for infeasible results (null).
    • sign

      protected final Objective.Sign sign
    • rank

      protected final int rank
  • Constructor Details

    • Objective

      public Objective(String name)
      Constructs an Objective with a given name, sign=MIN, and rank=RANK_OBJECTIVE(0).
      Parameters:
      name - the name
    • Objective

      public Objective(String name, Objective.Sign sign)
      Constructs an Objective with a given name, sign, and rank=RANK_OBJECTIVE(0).
      Parameters:
      name - the name
      sign - the sign of the objective
    • Objective

      public Objective(String name, Objective.Sign sign, int rank)
      Constructs an Objective with a given name, sign, and rank.
      Parameters:
      name - the name
      sign - the sign of the objective
      rank - the rank
  • Method Details