AnyLogic
Expand
Font size
All Implemented Interfaces:
IOptimization

public class MetalOptimization
extends Object
implements IOptimization

Constructor Summary

ConstructorDescription
MetalOptimization() 

Method Summary

Modifier and TypeMethodDescription
voidaddObjective(IObjective objective) 
voidaddParameter(IVariable variable) 
voidaddPostConstraint(IPostConstraint requirement) 
voidaddPreConstraint(IPreConstraint constraint) 
voidaddSuggestedSolution() 
voidcontinueOptimization() 
IBinaryVariablecreateBooleanVariable() 
IContinuousVariablecreateContinuousVariable() 
IDiscreteVariablecreateDiscreteVariable() 
IObjectivecreateObjective() 
IPostConstraintcreatePostConstraint() 
IPreConstraintcreatePreConstraint() 
intgetBestIteration() 
doublegetBestObjectiveValue() 
ObjectgetBestParam(IVariable param) 
doublegetBestParamValue(IVariable param) 
intgetBestReplicationsNumber() 
intgetCurrentIteration() 
doublegetCurrentObjectiveValue() 
ObjectgetCurrentParam(IVariable parameter) 
doublegetCurrentParamValue(IVariable param) 
intgetCurrentReplication() 
intgetMaximumIterations() 
intgetNumberOfCompletedIterations() 
booleanisBestSolutionFeasible() 
booleanisCurrentSolutionFeasible() 
booleanisLastReplication() 
booleanisStarted() 
ThrowableperformParallel(boolean restart) 
ThrowableperformSerial(boolean restart) 
voidprepareRestart() 
voidsetAutoStop(boolean stop) 
voidsetCurrentObjectiveValue(IObjective objective, double value) 
voidsetCurrentPostConstraintValue(IPostConstraint requirement, double value) 
voidsetCurrentPreConstraintValue(IPreConstraint constraint, double value) 
voidsetExperiment(ExperimentOptimization<?> experimentOptimization) 
voidsetFixedReplicationsNumber(int replicationsNumber) 
voidsetMaximumIterations(int numberOfIterations) 
voidsetParameterSuggestedValue(IVariable variable, Object value) 
voidsetPostConstraint(IPostConstraint postConstraint, double bound, ConstraintTypeEnum type) 
voidsetPreConstraint(IPreConstraint constraint, double bound, ConstraintTypeEnum type, String expression) 
voidsetUserControlledStop(boolean stop) 
voidstopOptimization() 
voidvalidateInput() 

Methods inherited from class java.lang.Object

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

Constructor Details

MetalOptimization

public MetalOptimization()

Method Details

getMaximumIterations

public int getMaximumIterations()
Specified by:
getMaximumIterations in interface IOptimization

getNumberOfCompletedIterations

public int getNumberOfCompletedIterations()
Specified by:
getNumberOfCompletedIterations in interface IOptimization

setMaximumIterations

public void setMaximumIterations(int numberOfIterations)
Specified by:
setMaximumIterations in interface IOptimization

getCurrentIteration

public int getCurrentIteration()
Specified by:
getCurrentIteration in interface IOptimization

getBestIteration

public int getBestIteration()
Specified by:
getBestIteration in interface IOptimization

getCurrentObjectiveValue

public double getCurrentObjectiveValue()
Specified by:
getCurrentObjectiveValue in interface IOptimization

setCurrentObjectiveValue

public void setCurrentObjectiveValue(IObjective objective,
 double value)
Specified by:
setCurrentObjectiveValue in interface IOptimization

getBestObjectiveValue

public double getBestObjectiveValue()
Specified by:
getBestObjectiveValue in interface IOptimization

addPreConstraint

public void addPreConstraint(IPreConstraint constraint)
Specified by:
addPreConstraint in interface IOptimization

addObjective

public void addObjective(IObjective objective)
Specified by:
addObjective in interface IOptimization

addParameter

public void addParameter(IVariable variable)
Specified by:
addParameter in interface IOptimization

addPostConstraint

public void addPostConstraint(IPostConstraint requirement)
Specified by:
addPostConstraint in interface IOptimization

addSuggestedSolution

public void addSuggestedSolution()
Specified by:
addSuggestedSolution in interface IOptimization

isBestSolutionFeasible

public boolean isBestSolutionFeasible()
Specified by:
isBestSolutionFeasible in interface IOptimization

isCurrentSolutionFeasible

public boolean isCurrentSolutionFeasible()
Specified by:
isCurrentSolutionFeasible in interface IOptimization

stopOptimization

public void stopOptimization()
Specified by:
stopOptimization in interface IOptimization

setAutoStop

public void setAutoStop(boolean stop)
Specified by:
setAutoStop in interface IOptimization

setUserControlledStop

public void setUserControlledStop(boolean stop)
Specified by:
setUserControlledStop in interface IOptimization

isStarted

public boolean isStarted()
Specified by:
isStarted in interface IOptimization

continueOptimization

public void continueOptimization()
Specified by:
continueOptimization in interface IOptimization

prepareRestart

public void prepareRestart()
Specified by:
prepareRestart in interface IOptimization

performSerial

public Throwable performSerial(boolean restart)
Specified by:
performSerial in interface IOptimization

performParallel

public Throwable performParallel(boolean restart)
Specified by:
performParallel in interface IOptimization

setExperiment

public void setExperiment(ExperimentOptimization<?> experimentOptimization)
Specified by:
setExperiment in interface IOptimization

getBestParam

public Object getBestParam(IVariable param)
Specified by:
getBestParam in interface IOptimization

getBestParamValue

public double getBestParamValue(IVariable param)
Specified by:
getBestParamValue in interface IOptimization

getCurrentParamValue

public double getCurrentParamValue(IVariable param)
Specified by:
getCurrentParamValue in interface IOptimization

getCurrentParam

public Object getCurrentParam(IVariable parameter)
Specified by:
getCurrentParam in interface IOptimization

setParameterSuggestedValue

public void setParameterSuggestedValue(IVariable variable,
 Object value)
Specified by:
setParameterSuggestedValue in interface IOptimization

getCurrentReplication

public int getCurrentReplication()
Specified by:
getCurrentReplication in interface IOptimization

getBestReplicationsNumber

public int getBestReplicationsNumber()
Specified by:
getBestReplicationsNumber in interface IOptimization

setFixedReplicationsNumber

public void setFixedReplicationsNumber(int replicationsNumber)
Specified by:
setFixedReplicationsNumber in interface IOptimization

isLastReplication

public boolean isLastReplication()
Specified by:
isLastReplication in interface IOptimization

setPostConstraint

public void setPostConstraint(IPostConstraint postConstraint,
 double bound,
 ConstraintTypeEnum type)
Specified by:
setPostConstraint in interface IOptimization

setCurrentPostConstraintValue

public void setCurrentPostConstraintValue(IPostConstraint requirement,
 double value)
Specified by:
setCurrentPostConstraintValue in interface IOptimization

setCurrentPreConstraintValue

public void setCurrentPreConstraintValue(IPreConstraint constraint,
 double value)
Specified by:
setCurrentPreConstraintValue in interface IOptimization

setPreConstraint

public void setPreConstraint(IPreConstraint constraint,
 double bound,
 ConstraintTypeEnum type,
 String expression)
Specified by:
setPreConstraint in interface IOptimization

validateInput

public void validateInput()
Specified by:
validateInput in interface IOptimization

createObjective

public IObjective createObjective()
Specified by:
createObjective in interface IOptimization

createContinuousVariable

public IContinuousVariable createContinuousVariable()
Specified by:
createContinuousVariable in interface IOptimization

createDiscreteVariable

public IDiscreteVariable createDiscreteVariable()
Specified by:
createDiscreteVariable in interface IOptimization

createBooleanVariable

public IBinaryVariable createBooleanVariable()
Specified by:
createBooleanVariable in interface IOptimization

createPostConstraint

public IPostConstraint createPostConstraint()
Specified by:
createPostConstraint in interface IOptimization

createPreConstraint

public IPreConstraint createPreConstraint()
Specified by:
createPreConstraint in interface IOptimization