AnyLogic
Expand
Font size
All Known Implementing Classes:
MetalOptimization, OptQuestOptimization

public interface IOptimization

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 parameter) 
doublegetBestParamValue(IVariable parameter) 
intgetBestReplicationsNumber() 
intgetCurrentIteration() 
doublegetCurrentObjectiveValue() 
ObjectgetCurrentParam(IVariable parameter) 
doublegetCurrentParamValue(IVariable parameter) 
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 constraint, double bound, ConstraintTypeEnum type) 
voidsetPreConstraint(IPreConstraint constraint, double bound, ConstraintTypeEnum type, String expression) 
voidsetUserControlledStop(boolean stop) 
voidstopOptimization() 
voidvalidateInput() 

Method Details

getBestParamValue

double getBestParamValue(IVariable parameter)

getCurrentParamValue

double getCurrentParamValue(IVariable parameter)

getBestParam

Object getBestParam(IVariable parameter)

getCurrentParam

Object getCurrentParam(IVariable parameter)

setParameterSuggestedValue

void setParameterSuggestedValue(IVariable variable,
 Object value)

setCurrentPostConstraintValue

void setCurrentPostConstraintValue(IPostConstraint requirement,
 double value)

setCurrentPreConstraintValue

void setCurrentPreConstraintValue(IPreConstraint constraint,
 double value)

setPostConstraint

void setPostConstraint(IPostConstraint constraint,
 double bound,
 ConstraintTypeEnum type)

setPreConstraint

void setPreConstraint(IPreConstraint constraint,
 double bound,
 ConstraintTypeEnum type,
 String expression)

getMaximumIterations

int getMaximumIterations()

getNumberOfCompletedIterations

int getNumberOfCompletedIterations()

setMaximumIterations

void setMaximumIterations(int numberOfIterations)

getCurrentIteration

int getCurrentIteration()

getBestIteration

int getBestIteration()

getCurrentReplication

int getCurrentReplication()

getBestReplicationsNumber

int getBestReplicationsNumber()

setFixedReplicationsNumber

void setFixedReplicationsNumber(int replicationsNumber)

isLastReplication

boolean isLastReplication()

getCurrentObjectiveValue

double getCurrentObjectiveValue()

setCurrentObjectiveValue

void setCurrentObjectiveValue(IObjective objective,
 double value)

getBestObjectiveValue

double getBestObjectiveValue()

addPreConstraint

void addPreConstraint(IPreConstraint constraint)

addObjective

void addObjective(IObjective objective)

addParameter

void addParameter(IVariable variable)

addPostConstraint

void addPostConstraint(IPostConstraint requirement)

addSuggestedSolution

void addSuggestedSolution()

isBestSolutionFeasible

boolean isBestSolutionFeasible()

isCurrentSolutionFeasible

boolean isCurrentSolutionFeasible()

stopOptimization

void stopOptimization()

setAutoStop

void setAutoStop(boolean stop)

setUserControlledStop

void setUserControlledStop(boolean stop)

isStarted

boolean isStarted()

prepareRestart

void prepareRestart()

continueOptimization

void continueOptimization()

performParallel

Throwable performParallel(boolean restart)

performSerial

Throwable performSerial(boolean restart)

setExperiment

void setExperiment(ExperimentOptimization<?> experimentOptimization)

validateInput

void validateInput()

createObjective

IObjective createObjective()

createContinuousVariable

IContinuousVariable createContinuousVariable()

createDiscreteVariable

IDiscreteVariable createDiscreteVariable()

createBooleanVariable

IBinaryVariable createBooleanVariable()

createPostConstraint

IPostConstraint createPostConstraint()

createPreConstraint

IPreConstraint createPreConstraint()