|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.util.wrapper.XReal
public class XReal
Wrapper for accessing real-coded solutions
| Constructor Summary | |
|---|---|
XReal()
Constructor |
|
XReal(Solution solution)
Constructor |
|
| Method Summary | |
|---|---|
double |
getLowerBound(int index)
Gets the lower bound of a encodings.variable |
int |
getNumberOfDecisionVariables()
Returns the number of variables of the solution |
double |
getUpperBound(int index)
Gets the upper bound of a encodings.variable |
double |
getValue(int index)
Gets value of a encodings.variable |
void |
setValue(int index,
double value)
Sets the value of a encodings.variable |
int |
size()
Returns the number of variables of the solution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XReal()
public XReal(Solution solution)
solution - | Method Detail |
|---|
public double getValue(int index)
throws JMException
index - Index of the encodings.variable
JMException
public void setValue(int index,
double value)
throws JMException
index - Index of the encodings.variablevalue - Value to be assigned
JMException
public double getLowerBound(int index)
throws JMException
index - Index of the encodings.variable
JMException
public double getUpperBound(int index)
throws JMException
index - Index of the encodings.variable
JMExceptionpublic int getNumberOfDecisionVariables()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||