public class PointSolution extends Object implements Solution<Double>
Point object. Only objectives are used.| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Object> |
attributes |
| Constructor and Description |
|---|
PointSolution(int numberOfObjectives)
Constructor
|
PointSolution(Point point)
Constructor
|
PointSolution(PointSolution point)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
PointSolution |
copy() |
boolean |
equals(Object o) |
Object |
getAttribute(Object id) |
int |
getNumberOfObjectives() |
int |
getNumberOfVariables() |
double |
getObjective(int index) |
Double |
getVariableValue(int index) |
String |
getVariableValueString(int index) |
int |
hashCode() |
void |
setAttribute(Object id,
Object value) |
void |
setObjective(int index,
double value) |
void |
setVariableValue(int index,
Double value) |
String |
toString() |
public PointSolution(int numberOfObjectives)
numberOfObjectives - public PointSolution(Point point)
point - public PointSolution(PointSolution point)
point - public void setObjective(int index,
double value)
setObjective in interface Solution<Double>public double getObjective(int index)
getObjective in interface Solution<Double>public Double getVariableValue(int index)
getVariableValue in interface Solution<Double>public void setVariableValue(int index,
Double value)
setVariableValue in interface Solution<Double>public String getVariableValueString(int index)
getVariableValueString in interface Solution<Double>public int getNumberOfVariables()
getNumberOfVariables in interface Solution<Double>public int getNumberOfObjectives()
getNumberOfObjectives in interface Solution<Double>public PointSolution copy()
public void setAttribute(Object id, Object value)
setAttribute in interface Solution<Double>public Object getAttribute(Object id)
getAttribute in interface Solution<Double>Copyright © 2017. All rights reserved.