- java.lang.Object
- com.anylogic.engine.optimization.metal.MetalVariable
- com.anylogic.engine.optimization.metal.MetalDiscreteVariable
- All Implemented Interfaces:
IBoundedVariable,IDiscreteVariable,IVariable
public class MetalDiscreteVariable extends MetalVariable implements IDiscreteVariable
| Constructor | Description |
|---|---|
MetalDiscreteVariable() |
| Modifier and Type | Method | Description |
|---|---|---|
Object | getCurrentValue | |
DiscreteParameterDataType | getDataType() | |
int | getLowerBound() | |
int | getSolutionIndex() | |
int | getUpperBound() | |
boolean | isValid() | |
void | set | |
void | setMax | |
void | setMin |
getBestValue, getBestValueAsDouble, getCurrentValueAsDouble, getInternalIndex, getName, setBestValue, setInternalIndex, setNamepublic MetalDiscreteVariable()
public Object getCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)
- Specified by:
getCurrentValuein classMetalVariable
public void setMin(String bound)
public void setMax(String bound)
public int getLowerBound()
public int getUpperBound()
public void set(String name, DiscreteParameterDataType dataType, String min, String max, String step)
- Specified by:
setin interfaceIDiscreteVariable
public boolean isValid()
- Specified by:
isValidin classMetalVariable
public DiscreteParameterDataType getDataType()
- Specified by:
getDataTypein interfaceIDiscreteVariable
public int getSolutionIndex()
- Specified by:
getSolutionIndexin classMetalVariable