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:
Each Evaluator sets a specific amount of
Objective- Value pairs.
Use the ObjectivesMonitor to get all
Objectives of the optimization task.
Objectives,
ObjectivesMonitor| Modifier and Type | Class and Description |
|---|---|
static class |
Objective.Sign
The sign of the objective.
|
| Modifier and Type | Field and Description |
|---|---|
static Value<?> |
INFEASIBLE
Identifier for infeasible results (
null). |
static int |
RANK_ERROR
High priority rank (-100).
|
static int |
RANK_OBJECTIVE
Standard rank of an objective (0).
|
| Constructor and Description |
|---|
Objective(String name)
Constructs an
Objective with a given name, sign=MIN, and
rank=RANK_OBJECTIVE(0). |
Objective(String name,
Objective.Sign sign)
Constructs an
Objective with a given name, sign, and
rank=RANK_OBJECTIVE(0). |
Objective(String name,
Objective.Sign sign,
int rank)
Constructs an
Objective with a given name, sign, and rank. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Objective other) |
int |
getRank()
Returns the rank.
|
Objective.Sign |
getSign()
Returns the sign.
|
String |
toString() |
public static final int RANK_OBJECTIVE
public static final int RANK_ERROR
public static final Value<?> INFEASIBLE
null).public Objective(String name)
Objective with a given name, sign=MIN, and
rank=RANK_OBJECTIVE(0).name - the namepublic Objective(String name, Objective.Sign sign)
Objective with a given name, sign, and
rank=RANK_OBJECTIVE(0).name - the namesign - the sign of the objectivepublic Objective(String name, Objective.Sign sign, int rank)
Objective with a given name, sign, and rank.name - the namesign - the sign of the objectiverank - the rankpublic Objective.Sign getSign()
public int getRank()
public int compareTo(Objective other)
compareTo in interface Comparable<Objective>