- java.lang.Object
- com.anylogic.engine.optimization.metal.MetalVariable
- All Implemented Interfaces:
IVariable
- Direct Known Subclasses:
MetalBinaryVariable
,MetalContinuousVariable
,MetalDiscreteVariable
public abstract class MetalVariable extends Object implements IVariable
Constructor | Description |
---|---|
MetalVariable() |
Modifier and Type | Method | Description |
---|---|---|
Object | getBestValue() | |
double | getBestValueAsDouble() | |
abstract Object | getCurrentValue | |
double | getCurrentValueAsDouble | |
int | getInternalIndex() | |
String | getName() | |
abstract int | getSolutionIndex() | |
abstract boolean | isValid() | |
void | setBestValue | |
void | setInternalIndex | |
void | setName |
public MetalVariable()
public void setName(String name)
public String getName()
public abstract Object getCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)
public Object getBestValue()
public void setBestValue(Object bestValue)
public double getBestValueAsDouble()
public double getCurrentValueAsDouble(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)
public abstract boolean isValid()
public abstract int getSolutionIndex()
public int getInternalIndex()
public void setInternalIndex(int index)