AnyLogic
Expand
Font size
All Implemented Interfaces:
IBoundedVariable, IDiscreteVariable, IVariable

public class MetalDiscreteVariable
extends MetalVariable
implements IDiscreteVariable

Constructor Summary

ConstructorDescription
MetalDiscreteVariable() 

Method Summary

Modifier and TypeMethodDescription
ObjectgetCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution) 
DiscreteParameterDataTypegetDataType() 
intgetLowerBound() 
intgetSolutionIndex() 
intgetUpperBound() 
booleanisValid() 
voidset(String name, DiscreteParameterDataType dataType, String min, String max, String step) 
voidsetMax(String bound) 
voidsetMin(String bound) 

Methods inherited from class com.anylogic.engine.optimization.metal.MetalVariable

getBestValue, getBestValueAsDouble, getCurrentValueAsDouble, getInternalIndex, getName, setBestValue, setInternalIndex, setName

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.optimization.IDiscreteVariable

getParameterType

Methods inherited from interface com.anylogic.engine.optimization.IVariable

getName, setName

Constructor Details

MetalDiscreteVariable

public MetalDiscreteVariable()

Method Details

getCurrentValue

public Object getCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)
Specified by:
getCurrentValue in class MetalVariable

setMin

public void setMin(String bound)

setMax

public void setMax(String bound)

getLowerBound

public int getLowerBound()

getUpperBound

public int getUpperBound()

set

public void set(String name,
 DiscreteParameterDataType dataType,
 String min,
 String max,
 String step)
Specified by:
set in interface IDiscreteVariable

isValid

public boolean isValid()
Specified by:
isValid in class MetalVariable

getDataType

public DiscreteParameterDataType getDataType()
Specified by:
getDataType in interface IDiscreteVariable

getSolutionIndex

public int getSolutionIndex()
Specified by:
getSolutionIndex in class MetalVariable