Package com.anylogic.engine
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getMaximumIterations
- getNumberOfCompletedIterations
- setMaximumIterations
- getCurrentIteration
- getBestIteration
- getCurrentObjectiveValue
- setCurrentObjectiveValue
- getBestObjectiveValue
- addPreConstraint
- addObjective
- addParameter
- addPostConstraint
- addSuggestedSolution
- isBestSolutionFeasible
- isCurrentSolutionFeasible
- stopOptimization
- setAutoStop
- setUserControlledStop
- isStarted
- continueOptimization
- prepareRestart
- performSerial
- performParallel
- setExperiment
- getBestParam
- getBestParamValue
- getCurrentParamValue
- getCurrentParam
- setParameterSuggestedValue
- getCurrentReplication
- getBestReplicationsNumber
- setFixedReplicationsNumber
- isLastReplication
- setPostConstraint
- setCurrentPostConstraintValue
- setCurrentPreConstraintValue
- setPreConstraint
- validateInput
- createObjective
- createContinuousVariable
- createDiscreteVariable
- createBooleanVariable
- createPostConstraint
- createPreConstraint
- java.lang.Object
- com.anylogic.engine.MetalOptimization
- All Implemented Interfaces:
IOptimization
public class MetalOptimization extends Object implements IOptimization
Constructor | Description |
---|---|
MetalOptimization() |
public MetalOptimization()
public int getMaximumIterations()
- Specified by:
getMaximumIterations
in interfaceIOptimization
public int getNumberOfCompletedIterations()
- Specified by:
getNumberOfCompletedIterations
in interfaceIOptimization
public void setMaximumIterations(int numberOfIterations)
- Specified by:
setMaximumIterations
in interfaceIOptimization
public int getCurrentIteration()
- Specified by:
getCurrentIteration
in interfaceIOptimization
public int getBestIteration()
- Specified by:
getBestIteration
in interfaceIOptimization
public double getCurrentObjectiveValue()
- Specified by:
getCurrentObjectiveValue
in interfaceIOptimization
public void setCurrentObjectiveValue(IObjective objective, double value)
- Specified by:
setCurrentObjectiveValue
in interfaceIOptimization
public double getBestObjectiveValue()
- Specified by:
getBestObjectiveValue
in interfaceIOptimization
public void addPreConstraint(IPreConstraint constraint)
- Specified by:
addPreConstraint
in interfaceIOptimization
public void addObjective(IObjective objective)
- Specified by:
addObjective
in interfaceIOptimization
public void addParameter(IVariable variable)
- Specified by:
addParameter
in interfaceIOptimization
public void addPostConstraint(IPostConstraint requirement)
- Specified by:
addPostConstraint
in interfaceIOptimization
public void addSuggestedSolution()
- Specified by:
addSuggestedSolution
in interfaceIOptimization
public boolean isBestSolutionFeasible()
- Specified by:
isBestSolutionFeasible
in interfaceIOptimization
public boolean isCurrentSolutionFeasible()
- Specified by:
isCurrentSolutionFeasible
in interfaceIOptimization
public void stopOptimization()
- Specified by:
stopOptimization
in interfaceIOptimization
public void setAutoStop(boolean stop)
- Specified by:
setAutoStop
in interfaceIOptimization
public void setUserControlledStop(boolean stop)
- Specified by:
setUserControlledStop
in interfaceIOptimization
public boolean isStarted()
- Specified by:
isStarted
in interfaceIOptimization
public void continueOptimization()
- Specified by:
continueOptimization
in interfaceIOptimization
public void prepareRestart()
- Specified by:
prepareRestart
in interfaceIOptimization
public Throwable performSerial(boolean restart)
- Specified by:
performSerial
in interfaceIOptimization
public Throwable performParallel(boolean restart)
- Specified by:
performParallel
in interfaceIOptimization
public void setExperiment(ExperimentOptimization<?> experimentOptimization)
- Specified by:
setExperiment
in interfaceIOptimization
public Object getBestParam(IVariable param)
- Specified by:
getBestParam
in interfaceIOptimization
public double getBestParamValue(IVariable param)
- Specified by:
getBestParamValue
in interfaceIOptimization
public double getCurrentParamValue(IVariable param)
- Specified by:
getCurrentParamValue
in interfaceIOptimization
public Object getCurrentParam(IVariable parameter)
- Specified by:
getCurrentParam
in interfaceIOptimization
public void setParameterSuggestedValue(IVariable variable, Object value)
- Specified by:
setParameterSuggestedValue
in interfaceIOptimization
public int getCurrentReplication()
- Specified by:
getCurrentReplication
in interfaceIOptimization
public int getBestReplicationsNumber()
- Specified by:
getBestReplicationsNumber
in interfaceIOptimization
public void setFixedReplicationsNumber(int replicationsNumber)
- Specified by:
setFixedReplicationsNumber
in interfaceIOptimization
public boolean isLastReplication()
- Specified by:
isLastReplication
in interfaceIOptimization
public void setPostConstraint(IPostConstraint postConstraint, double bound, ConstraintTypeEnum type)
- Specified by:
setPostConstraint
in interfaceIOptimization
public void setCurrentPostConstraintValue(IPostConstraint requirement, double value)
- Specified by:
setCurrentPostConstraintValue
in interfaceIOptimization
public void setCurrentPreConstraintValue(IPreConstraint constraint, double value)
- Specified by:
setCurrentPreConstraintValue
in interfaceIOptimization
public void setPreConstraint(IPreConstraint constraint, double bound, ConstraintTypeEnum type, String expression)
- Specified by:
setPreConstraint
in interfaceIOptimization
public void validateInput()
- Specified by:
validateInput
in interfaceIOptimization
public IObjective createObjective()
- Specified by:
createObjective
in interfaceIOptimization
public IContinuousVariable createContinuousVariable()
- Specified by:
createContinuousVariable
in interfaceIOptimization
public IDiscreteVariable createDiscreteVariable()
- Specified by:
createDiscreteVariable
in interfaceIOptimization
public IBinaryVariable createBooleanVariable()
- Specified by:
createBooleanVariable
in interfaceIOptimization
public IPostConstraint createPostConstraint()
- Specified by:
createPostConstraint
in interfaceIOptimization
public IPreConstraint createPreConstraint()
- Specified by:
createPreConstraint
in interfaceIOptimization