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