- 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, setName
public MetalDiscreteVariable()
public Object getCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)
- Specified by:
getCurrentValue
in 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:
set
in interfaceIDiscreteVariable
public boolean isValid()
- Specified by:
isValid
in classMetalVariable
public DiscreteParameterDataType getDataType()
- Specified by:
getDataType
in interfaceIDiscreteVariable
public int getSolutionIndex()
- Specified by:
getSolutionIndex
in classMetalVariable