public class XReal
extends java.lang.Object
Constructor and Description |
---|
XReal()
Constructor
|
XReal(Solution solution)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getLowerBound(int index)
Gets the lower bound of a variable
|
int |
getNumberOfDecisionVariables()
Returns the number of variables of the solution
|
double |
getUpperBound(int index)
Gets the upper bound of a variable
|
double |
getValue(int index)
Gets value of a variable
|
void |
setValue(int index,
double value)
Sets the value of a variable
|
int |
size()
Returns the number of variables of the solution
|
public XReal()
public XReal(Solution solution)
solution
- public double getValue(int index) throws JMException
index
- Index of the variableJMException
public void setValue(int index, double value) throws JMException
index
- Index of the variablevalue
- Value to be assignedJMException
public double getLowerBound(int index) throws JMException
index
- Index of the variableJMException
public double getUpperBound(int index) throws JMException
index
- Index of the variableJMException
public int getNumberOfDecisionVariables()
public int size()