|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.Presentable
com.xj.anylogic.engine.Utilities
com.xj.anylogic.engine.Experiment<ROOT>
com.xj.anylogic.engine.ExperimentOptimization<ROOT>
ROOT - class of root objectpublic abstract class ExperimentOptimization<ROOT extends ActiveObject>
Experiment used to search for optimal solutions. Uses OptQuest optimizer. To
use this experiment you need to subclass from it and define the methods
setupRootParameters(ActiveObject, boolean)
which needs to retrieve the parameter values suggested by OptQuest and
Experiment.onEngineFinished() to set the objective according to
simulation output.
| Field Summary | |
|---|---|
static int |
CONFIDENCE_LEVEL_80
Confidence level constant 80% |
static int |
CONFIDENCE_LEVEL_90
Confidence level constant 90% |
static int |
CONFIDENCE_LEVEL_95
Confidence level constant 95% |
static int |
CONFIDENCE_LEVEL_98
Confidence level constant 98% |
static int |
CONFIDENCE_LEVEL_99
Confidence level constant 99% |
static int |
CONFIDENCE_LEVEL_99_9
Confidence level constant 99.9% |
| Fields inherited from class com.xj.anylogic.engine.Experiment |
|---|
ERROR, FINISHED, IDLE, modelExecutionCommandQueue, mutexModelActionQueue, OPEN_RESULTS, OPEN_SNAPSHOT, PAUSE, PAUSED, PLEASE_WAIT, RUN, RUNNING, SAVE_RESULTS, SAVE_SNAPSHOT, STEP, STOP |
| Fields inherited from class com.xj.anylogic.engine.Utilities |
|---|
AM, APRIL, AUGUST, DAY, DECEMBER, FEBRUARY, FRIDAY, HOUR, infinity, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_SECOND, TIME_UNIT_WEEK, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK, YEAR |
| Constructor Summary | |
|---|---|
ExperimentOptimization()
Creates the experiment, a new simulation engine, and a new optimizer that will be used throughout the whole experiment execution. |
|
ExperimentOptimization(boolean allowParallelEvaluations)
Same as ExperimentOptimization() but allows to disable
parallel evaluations on multicore/multiprocessor systems
(which are enabled by default) |
|
| Method Summary | |
|---|---|
void |
addConstraint(com.opttek.optquest.COptQuestConstraint constraint)
Adds the constraint defined by the input parameter to the optimization This is optimization setup method, user should not call it |
void |
addConstraint(com.opttek.optquest.COptQuestStringConstraint constraint)
Adds the string constraint defined by the input parameter to the optimization This is optimization setup method, user should not call it |
void |
addLinearConstraintVariable(com.opttek.optquest.COptQuestConstraint constraint,
com.opttek.optquest.COptQuestVariable variable,
double coefficient)
Adds a variable and its coefficient to the linear expression This method is called for each variable that is used in the left hand side expression For example, the constraint 2*Var1 + 3*Var2 + 1.5*Var3 <= 100 would call
addLinearConstraintVariable(Var1,2), addLinearConstraintVariable(Var2, 3)
and addLinearConstraintVariable(Var3,1.5)This is optimization setup method, user should not call it |
void |
addParameterVariable(com.opttek.optquest.COptQuestVariable variable)
Adds the variable defined by the input parameter to the optimization This is optimization setup method, user should not call it |
void |
addRequirement(com.opttek.optquest.COptQuestRequirement requirement)
Adds the requirement defined by the input parameter to the optimization This is optimization setup method, user should not call it |
void |
addSuggestedSolution()
This method signals the completion of a suggested solution definition. |
static com.opttek.optquest.COptQuestOptimization |
createOptimization(Engine engine)
Creates and returns new OptQuest optimization instance for Custom Experiment This method should only be used in custom experiment code This method is designed for use in the AnyLogic Professional only |
static com.opttek.optquest.COptQuestOptimization |
createOptimization(Engine engine,
OptimizationCallback callback)
Creates and returns new OptQuest optimization instance for Custom Experiment with objective function defined in a free form using evaluate method of a special callback. |
boolean |
doesOptimizationExist()
|
int |
getBestFeasibleIteration()
Deprecated. call isBestSolutionFeasible() and check its result:if it returns true, use getBestIteration();otherwise there is no best feasible iteration |
double |
getBestFeasibleObjectiveValue()
Deprecated. call isBestSolutionFeasible() and check its result:if it returns true, use getBestObjectiveValue();otherwise there is no best feasible solution |
double |
getBestFeasibleParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
Deprecated. call isBestSolutionFeasible() and check its result:if it returns true, use getBestParamValue(COptQuestVariable);otherwise there is no best feasible solution |
int |
getBestFeasibleReplicationsNumber()
Deprecated. call isBestSolutionFeasible() and check its result:if it returns true, use getBestReplicationsNumber();otherwise there is no best feasible solution |
int |
getBestIteration()
Returns the iteration that resulted in the best solution thus far (solution may be infeasible) Ensure optimization exists before calling this method ( doesOptimizationExist()) |
double |
getBestObjectiveValue()
Returns the value of the objective function for the best solution found thus far Returned value may be infeasible Ensure optimization exists before calling this method ( doesOptimizationExist()) |
double |
getBestParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
Returns the value of the given optimization parameter variable for the best solution found thus far (solution may be infeasible) |
int |
getBestReplicationsNumber()
Returns the number of replications that were run for the best solution (solution may be infeasible) Ensure optimization exists ( doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method |
int |
getCurrentIteration()
Returns the current value of iteration counter Ensure optimization exists before calling this method ( doesOptimizationExist()) |
double |
getCurrentObjectiveValue()
Returns the value of the objective function for the current solution Ensure optimization exists before calling this method ( doesOptimizationExist()) |
double |
getCurrentParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
Returns the value of the given optimization parameter variable for the current solution |
int |
getCurrentReplication()
Returns the replication number for the current solution being evaluated Ensure optimization exists ( doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method |
Engine |
getEngine()
It is strongly recommended not to call this method because of possible parallel execution environment. |
int |
getMaximumIterations()
Returns the number of iterations set by setMaximumIterations(int) |
java.lang.Object |
getMutexRead_xjal()
|
java.lang.Object |
getMutexWrite_xjal()
|
int |
getNumberOfCompletedIterations()
Returns the current value of iteration counter Ensure optimization exists before calling this method ( doesOptimizationExist()) |
com.opttek.optquest.COptQuestOptimization |
getOptimization_xjal()
Returns the optimization engine. |
int |
getParallelEvaluatorsCount()
Returns the number of parallel evaluators used in this experiment. |
double |
getProgress()
Returns the progress of the experiment: a number between 0 and 1 corresponding to the part of the experiment completed so far (based on iteration count or time limit), or -1 if this cannot be calculated. |
int |
getRunCount()
Returns the number of the current simulation run, more precisely the number of times the model was destroyed. |
double |
getRunTimeSeconds()
Returns the real duration of the experiment in seconds. |
int |
getSelectedNthBestIteration()
Returns the iteration number for the Nth best solution, where the Nth best solution is identified by the method selectNthBestSolution(int)Ensure optimization exists before calling this method ( doesOptimizationExist()) |
double |
getSelectedNthBestObjectiveValue()
Returns the objective value for the Nth best solution, identified by the method selectNthBestSolution(int)Ensure optimization exists before calling this method ( doesOptimizationExist()) |
double |
getSelectedNthBestParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
Used to retrieve the value of the variable for the solution that produced the Nth best objective value The Nth best solution is identified by calling selectNthBestSolution(int) |
int |
getSelectedNthBestReplicationsNumber()
Returns the number of replications for the Nth best solution, where the Nth best solution is identified by the method selectNthBestSolution(int)Ensure optimization exists ( doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method |
double[] |
getSimulationProgress_xjal(double[] output)
This method is not designed to be called by user and may be changed/removed in the future releases. |
int |
getState()
Returns the current state of the experiment. |
long |
getStep()
Returns the number of events executed by the engine. |
boolean |
isBestSolutionFeasible()
Returns true if the best solution satisfies all
constraints and requirementsEnsure optimization exists before calling this method ( doesOptimizationExist()) |
boolean |
isCommandEnabled(int cmd)
Checks if a command can be executed. |
boolean |
isCurrentSolutionBest()
Returns true if current solution is the best one at this
moment |
boolean |
isCurrentSolutionFeasible()
Returns true if current solution satisfies all
constraints and requirementsEnsure optimization exists before calling this method ( doesOptimizationExist()) |
boolean |
isLastReplication()
Return true if we have run the last replication for the current solution This is optimization setup method, user should not call it |
boolean |
isSelectedNthBestSolutionFeasible()
Returns true if nth best solution satisfies all
constraints and requirementsEnsure optimization exists before calling this method ( doesOptimizationExist()) |
boolean |
isUseReplications()
Returns true if optimization uses replications |
void |
onAfterIteration()
User's extension point for after iteration code By default does nothing |
void |
pause()
Pauses the model execution. |
void |
registerPresentation_xjal(Presentation presentation)
This method isn't designed to be called by user. |
void |
run()
Runs the model from the current state. |
void |
selectNthBestSolution(int bestSolutionIndex)
Called by the user to identify the Nth best soluiton. |
void |
setAutoStop(boolean stop)
Sets the auto stop option. |
void |
setConstraintEquation(com.opttek.optquest.COptQuestStringConstraint constraint,
java.lang.String equation)
Sets the mathematical expression that defines the constraint This is optimization setup method, user should not call it |
void |
setCurrentObjectiveValue(double value)
Used to set the value of the objective for the current solution. |
void |
setCurrentRequirementValue_xjal(com.opttek.optquest.COptQuestRequirement requirement,
double value)
Used to set the value of the requirement for the current solution. |
void |
setFixedReplicationsNumber(int replicationsNumber)
Sets experiment to use a fixed number of replications. |
void |
setLinearConstraintRHS(com.opttek.optquest.COptQuestConstraint constraint,
double value)
Sets the right hand side value of a linear constraint This is optimization setup method, user should not call it |
void |
setLogBufferLength(int length)
|
void |
setMaximumIterations(int numberOfIterations)
Sets the number of iterations the optimization should perform before stopping. |
void |
setObjectiveMaximize()
Sets the goal of the optimization to maximize the objective value This is optimization setup method, user should not call it |
void |
setObjectiveMinimize()
Sets the goal of the optimization to minimize the objective value This is optimization setup method, user should not call it |
void |
setParameterVariableLowerBound(com.opttek.optquest.COptQuestVariable variable,
double value)
Sets lower bound size for optimization parameter variable This is optimization setup method, user should not call it |
void |
setParameterVariableName(com.opttek.optquest.COptQuestVariable variable,
java.lang.String name)
Assigns a name to the variable Names must be alphanumeric and cannot be a function name This is optimization setup method, user should not call it |
void |
setParameterVariableStepSize(com.opttek.optquest.COptQuestVariable variable,
double value)
Sets step size for optimization parameter variable Used for discrete variables This is optimization setup method, user should not call it |
void |
setParameterVariableSuggestedValue(com.opttek.optquest.COptQuestVariable variable,
double value)
Allows the user to suggest a solution by setting a suggested value for each variable addSuggestedSolution() indicates the suggested solution is
complete and should be added to the set of solutions to be evaluated. |
void |
setParameterVariableUpperBound(com.opttek.optquest.COptQuestVariable variable,
double value)
Sets upper bound size for optimization parameter variable This is optimization setup method, user should not call it |
void |
setRejectNonLinear(boolean reject)
Directs the OptQuest Engine to reject solutions that violate non-linear constraints without performing simulation. |
void |
setRequirementLowerBound(com.opttek.optquest.COptQuestRequirement requirement,
double value)
Sets the lower bound of requirement to the input value This is optimization setup method, user should not call it |
void |
setRequirementUpperBound(com.opttek.optquest.COptQuestRequirement requirement,
double value)
Sets the upper bound of requirement to the input value This is optimization setup method, user should not call it |
abstract void |
setupRootParameters(ROOT root,
boolean callOnChangeActions)
Is called to setup parameters of root active object. |
void |
setUserControlledStop(boolean stop)
Indicates the user will stop the optimization by calling the stopOptimization() methodThis is optimization setup method, user should not call it |
void |
setUseReplications(boolean useReplications)
Sets optimization to use replications This is optimization setup method, user should not call it |
void |
setVariableReplicationsNumber(int minimumReplications,
int maximumReplications,
int confidenceLevel)
Deprecated. This method is deprecated. Use setVariableReplicationsNumber(int, int, int, double) instead |
void |
setVariableReplicationsNumber(int minimumReplications,
int maximumReplications,
int confidenceLevel,
double errorPercent)
Sets experiment to stop replications after the minimum replications when the confidence level is reached (i.e. mean confidence is within the given percentage errorPercent of the value obtained at the last
replication)
maximum replications number is reached
For fixed number of replications use
setFixedReplicationsNumber(int)This is optimization setup method, user should not call it |
void |
step()
Performs one step of the model execution. |
void |
stop()
Terminates the model execution, destroys and forgets the model and calls garbage collector, but keeps all experiment data. |
void |
stopOptimization()
Stops the currently running optimization This is optimization setup method, user should not call it |
| Methods inherited from class com.xj.anylogic.engine.Experiment |
|---|
close, createRoot, error, getCommandLineArguments, getName, getPresentation, getSnapshotFileName, getWindowHeight, getWindowWidth, initDefaultRandomNumberGenerator, isLoadRootFromSnapshot, onBeforeSimulationRun, onDestroy_xjal, onDestroy, onEngineFinished, onError, reset, setCommandLineArguments_xjal, setLoadRootFromSnapshot, setName, setup, setupEngine |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CONFIDENCE_LEVEL_80
80%
setVariableReplicationsNumber(int, int, int, double),
Constant Field Valuespublic static final int CONFIDENCE_LEVEL_90
90%
setVariableReplicationsNumber(int, int, int, double),
Constant Field Valuespublic static final int CONFIDENCE_LEVEL_95
95%
setVariableReplicationsNumber(int, int, int, double),
Constant Field Valuespublic static final int CONFIDENCE_LEVEL_98
98%
setVariableReplicationsNumber(int, int, int, double),
Constant Field Valuespublic static final int CONFIDENCE_LEVEL_99
99%
setVariableReplicationsNumber(int, int, int, double),
Constant Field Valuespublic static final int CONFIDENCE_LEVEL_99_9
99.9%
setVariableReplicationsNumber(int, int, int, double),
Constant Field Values| Constructor Detail |
|---|
public ExperimentOptimization()
public ExperimentOptimization(boolean allowParallelEvaluations)
ExperimentOptimization() but allows to disable
parallel evaluations on multicore/multiprocessor systems
(which are enabled by default)
allowParallelEvaluations - if false, the
iterations/replications of experiment will be performed
sequentiallygetParallelEvaluatorsCount()| Method Detail |
|---|
public boolean isCommandEnabled(int cmd)
Experiment
isCommandEnabled in class Experiment<ROOT extends ActiveObject>cmd - the command id
public final double getProgress()
public boolean doesOptimizationExist()
public int getMaximumIterations()
setMaximumIterations(int)
public int getCurrentIteration()
doesOptimizationExist())
public int getNumberOfCompletedIterations()
doesOptimizationExist())
public boolean isCurrentSolutionBest()
true if current solution is the best one at this
moment
true if current solution is the best one at this
moment, false otherwisepublic int getCurrentReplication()
doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method
public double getCurrentObjectiveValue()
doesOptimizationExist())
public double getCurrentParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
public boolean isCurrentSolutionFeasible()
true if current solution satisfies all
constraints and requirementsdoesOptimizationExist())
true if current solution satisfies all
constraints and requirements, false otherwisepublic int getBestIteration()
doesOptimizationExist())
isBestSolutionFeasible()public int getBestReplicationsNumber()
doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method
isBestSolutionFeasible()public double getBestObjectiveValue()
doesOptimizationExist())
isBestSolutionFeasible()public double getBestParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
isBestSolutionFeasible()public boolean isBestSolutionFeasible()
true if the best solution satisfies all
constraints and requirementsdoesOptimizationExist())
true if the best solution satisfies all
constraints and requirements, false otherwisegetBestObjectiveValue()@Deprecated public int getBestFeasibleIteration()
isBestSolutionFeasible() and check its result:true, use getBestIteration();
doesOptimizationExist())
-1 if no feasible solution was found@Deprecated public int getBestFeasibleReplicationsNumber()
isBestSolutionFeasible() and check its result:true, use getBestReplicationsNumber();
doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method
-1 if no feasible
solution was found@Deprecated public double getBestFeasibleObjectiveValue()
isBestSolutionFeasible() and check its result:true, use getBestObjectiveValue();
Double.NaN if no feasible solution was founddoesOptimizationExist())
getBestFeasibleParamValue(COptQuestVariable)@Deprecated public double getBestFeasibleParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
isBestSolutionFeasible() and check its result:true, use getBestParamValue(COptQuestVariable);
Double.NaN if no feasible solution was founddoesOptimizationExist())
public void selectNthBestSolution(int bestSolutionIndex)
getSelectedNthBestObjectiveValue() and
getSelectedNthBestParamValue(COptQuestVariable) methods use this
setting to identify the solution. This method locates the Nth best
solution and sets up data for subsequent calls that retrieve specific
pieces of informationdoesOptimizationExist())
bestSolutionIndex - 1 for the best solution, 2 for
the second best etc.getSelectedNthBestObjectiveValue(),
getSelectedNthBestParamValue(COptQuestVariable)public int getSelectedNthBestIteration()
selectNthBestSolution(int)doesOptimizationExist())
selectNthBestSolution(int)public int getSelectedNthBestReplicationsNumber()
selectNthBestSolution(int)doesOptimizationExist()) and
replications are used (isUseReplications()) before calling
this method
selectNthBestSolution(int)public double getSelectedNthBestObjectiveValue()
selectNthBestSolution(int)doesOptimizationExist())
selectNthBestSolution(int)public double getSelectedNthBestParamValue(com.opttek.optquest.COptQuestVariable optimizationParameterVariable)
selectNthBestSolution(int)
optimizationParameterVariable -
selectNthBestSolution(int)public boolean isSelectedNthBestSolutionFeasible()
true if nth best solution satisfies all
constraints and requirementsdoesOptimizationExist())
true if nth best solution satisfies all
constraints and requirements, false otherwiseselectNthBestSolution(int)public com.opttek.optquest.COptQuestOptimization getOptimization_xjal()
null (if
experiment hasn't yet been started).
public void setObjectiveMinimize()
public void setObjectiveMaximize()
public void setParameterVariableName(com.opttek.optquest.COptQuestVariable variable,
java.lang.String name)
variable - name -
public void setParameterVariableLowerBound(com.opttek.optquest.COptQuestVariable variable,
double value)
variable - value -
public void setParameterVariableUpperBound(com.opttek.optquest.COptQuestVariable variable,
double value)
variable - value -
public void setParameterVariableSuggestedValue(com.opttek.optquest.COptQuestVariable variable,
double value)
addSuggestedSolution() indicates the suggested solution is
complete and should be added to the set of solutions to be evaluated.
variable - value -
public void setParameterVariableStepSize(com.opttek.optquest.COptQuestVariable variable,
double value)
variable - value - public void addParameterVariable(com.opttek.optquest.COptQuestVariable variable)
variable - public void addSuggestedSolution()
setParameterVariableSuggestedValue(COptQuestVariable, double) is used to set a
value for each variable.
public void setLinearConstraintRHS(com.opttek.optquest.COptQuestConstraint constraint,
double value)
constraint - value -
public void addLinearConstraintVariable(com.opttek.optquest.COptQuestConstraint constraint,
com.opttek.optquest.COptQuestVariable variable,
double coefficient)
2*Var1 + 3*Var2 + 1.5*Var3 <= 100 would call
addLinearConstraintVariable(Var1,2), addLinearConstraintVariable(Var2, 3)
and addLinearConstraintVariable(Var3,1.5)
constraint - variable - coefficient - public void addConstraint(com.opttek.optquest.COptQuestConstraint constraint)
constraint -
public void setConstraintEquation(com.opttek.optquest.COptQuestStringConstraint constraint,
java.lang.String equation)
constraint - equation - public void addConstraint(com.opttek.optquest.COptQuestStringConstraint constraint)
constraint -
public void setRequirementLowerBound(com.opttek.optquest.COptQuestRequirement requirement,
double value)
requirement - value -
public void setRequirementUpperBound(com.opttek.optquest.COptQuestRequirement requirement,
double value)
requirement - value - public void addRequirement(com.opttek.optquest.COptQuestRequirement requirement)
requirement - public void setCurrentObjectiveValue(double value)
Experiment.onEngineFinished() method when the user
is calculating the objective value
value -
public void setCurrentRequirementValue_xjal(com.opttek.optquest.COptQuestRequirement requirement,
double value)
Experiment.onEngineFinished() method when the user
is calculating the requirement value
value - public void stopOptimization()
public void setRejectNonLinear(boolean reject)
false
reject - true if infeasible solutions should be
rejected.false if they should be evaluatedpublic void setUseReplications(boolean useReplications)
useReplications - setFixedReplicationsNumber(int),
setVariableReplicationsNumber(int, int, int, double)public final boolean isUseReplications()
true if optimization uses replications
true if optimization uses replications,
false otherwisepublic void setFixedReplicationsNumber(int replicationsNumber)
setVariableReplicationsNumber(int, int, int, double)
replicationsNumber - the number of replications to be runsetUseReplications(boolean)
public void setVariableReplicationsNumber(int minimumReplications,
int maximumReplications,
int confidenceLevel,
double errorPercent)
errorPercent of the value obtained at the last
replication)
setFixedReplicationsNumber(int)
minimumReplications - minimum number of replicationsmaximumReplications - minimum number of replicationsconfidenceLevel - one of
CONFIDENCE_LEVEL_80
CONFIDENCE_LEVEL_90
CONFIDENCE_LEVEL_95
CONFIDENCE_LEVEL_98
CONFIDENCE_LEVEL_99
CONFIDENCE_LEVEL_99_9
errorPercent - the error percentage as a value > 0 and < 1.setUseReplications(boolean)public void setMaximumIterations(int numberOfIterations)
numberOfIterations - number of optimization iterations to be performedpublic void setAutoStop(boolean stop)
true, auto stop is turned on.
The default is auto stop is turned off.
stop - true if auto stop is to be used,
false if it is not usedpublic void setUserControlledStop(boolean stop)
stopOptimization() method
stop - true if the user will stop the optimizationfalse if the optimization will be stopped by
setting the number of iterations or the maximum timepublic boolean isLastReplication()
public abstract void setupRootParameters(ROOT root,
boolean callOnChangeActions)
root - the root active object instancecallOnChangeActions - if true this method should
use set_* methods of root to setup
parameters, otherwise parameter values should be simply
assigned to the fields of rootpublic void setLogBufferLength(int length)
public static com.opttek.optquest.COptQuestOptimization createOptimization(Engine engine)
engine - the engine instance
createOptimization(Engine, OptimizationCallback)
public static com.opttek.optquest.COptQuestOptimization createOptimization(Engine engine,
OptimizationCallback callback)
engine - the engine instancecallback - the callback for
evaluate (and
monitorStatus) methods
public final Engine getEngine()
root.getEngine() instead.
Although, the method will most likely return the expected engine,
this could be conceptually better to get engine by using root.getEngine()
where root - is the root (main) active object class.
public long getStep()
Experiment
getStep in class Experiment<ROOT extends ActiveObject>public double[] getSimulationProgress_xjal(double[] output)
output - will be used for output if its length matches the number
of processors, otherwise new array will be created and returned
Engine.getProgress()public final int getRunCount()
Experiment
getRunCount in class Experiment<ROOT extends ActiveObject>
@Deprecated
public void setVariableReplicationsNumber(int minimumReplications,
int maximumReplications,
int confidenceLevel)
setVariableReplicationsNumber(int, int, int, double) instead
public void onAfterIteration()
public java.lang.Object getMutexRead_xjal()
getMutexRead_xjal in class Experiment<ROOT extends ActiveObject>public java.lang.Object getMutexWrite_xjal()
getMutexWrite_xjal in class Experiment<ROOT extends ActiveObject>public void registerPresentation_xjal(Presentation presentation)
Experiment
public int getParallelEvaluatorsCount()
public final int getState()
getState in class Experiment<ROOT extends ActiveObject>public final double getRunTimeSeconds()
getRunTimeSeconds in class Experiment<ROOT extends ActiveObject>public final void run()
run in class Experiment<ROOT extends ActiveObject>public final void step()
step in class Experiment<ROOT extends ActiveObject>public final void pause()
pause in class Experiment<ROOT extends ActiveObject>public final void stop()
stop in class Experiment<ROOT extends ActiveObject>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||