|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.Objective
public class 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. Moreover, each
Evaluator has to set the same
Objectives for all phenotypes.
Objectives| Nested Class Summary | |
|---|---|
static class |
Objective.Sign
The sign of the Objective. |
| Field Summary | |
|---|---|
static Value<?> |
INFEASIBLE
Identifier for infeasible results ( null). |
protected java.lang.String |
name
|
protected Objective.Sign |
sign
|
| Constructor Summary | |
|---|---|
Objective(java.lang.String name)
Constructs an Objective with a given name, sign=MIN, and
rank=RANK_OBJECTIVE(0). |
|
Objective(java.lang.String name,
Objective.Sign sign)
Constructs an Objective with a given name, sign, and
rank=RANK_OBJECTIVE(0). |
|
| Method Summary | |
|---|---|
int |
compareTo(Objective other)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name. |
Objective.Sign |
getSign()
Returns the sign. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Value<?> INFEASIBLE
null).
protected final Objective.Sign sign
protected final java.lang.String name
| Constructor Detail |
|---|
public Objective(java.lang.String name)
Objective with a given name, sign=MIN, and
rank=RANK_OBJECTIVE(0).
name - the name
public Objective(java.lang.String name,
Objective.Sign sign)
Objective with a given name, sign, and
rank=RANK_OBJECTIVE(0).
name - the namesign - the sign of the objective| Method Detail |
|---|
public Objective.Sign getSign()
public java.lang.String getName()
public int compareTo(Objective other)
compareTo in interface java.lang.Comparable<Objective>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||