public class Mesh extends Optimizer
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
| Modifier and Type | Field and Description |
|---|---|
protected int |
dimCon
number of continuous independent variables
|
protected int |
dimDis
number of discrete independent variables
|
protected int |
dimF
number of function values
|
protected int |
dimX
number of independent variables
|
protected int[] |
ind
index that defines the perturbated parameter value
|
protected int[] |
leng
number of values that each parameter can take on
|
protected int |
nS
number of required function evalations
|
(package private) java.util.Vector<Point> |
poiVec
Vector of points to be evaluated
|
protected int[] |
step
number of steps for continuous parameters
|
protected boolean |
stopAtError
flag whether run should stop or proceed if a simulation error occurs
|
done, EXCLUDING, FS, INCLUDING, LS, MAINITERATION, ORIGINAL, SUBITERATION, TRANSFORMED| Modifier and Type | Method and Description |
|---|---|
private void |
executeSimulations()
Executes all simulations.
|
Point |
getF(Point pt)
Evaluates a simulation and reports result
|
private void |
perturb(int iPar)
Perturbs the point and evaluates a simulation
|
int |
run(Point x0)
Runs the evaluation
|
algorithmRequiresUsageOfStepNumber, appendToOutputListing, checkMaxIteration, checkObjectiveFunctionValue, ensureOnlyContinuousParameters, ensureOnlyDiscreteParameters, getAbsAccuracyFunction, getDimensionContinuous, getDimensionDiscrete, getDimensionF, getDimensionX, getDiscreteValueDouble0, getDx, getDx0, getF, getIndex0, getIndex0, getInputValueBoolean, getInputValueDouble, getInputValueDouble, getInputValueInteger, getInputValueInteger, getInputValueString, getInputValueString, getKindOfConstraint, getL, getLengthDiscrete, getMainIterationNumber, getMaximumThreadPoolSize, getMaxIterationNumber, getMinimumPoint, getMode, getObjectiveFunctionName, getOutputPath, getPointerToEqualPoints, getRelAccuracyFunction, getSimulationNumber, getStepNumber, getU, getVariableNameContinuous, getVariableNameDiscrete, getX0, getX0, goToEndOfCommandFile, increaseStepNumber, increaseStepNumber, isFeasible, isNextToken, maxIterationReached, mustStopOptimization, print, println, replace, report, reportCurrentLowestPoint, reportMinimum, resetStepNumber, roundCoordinates, run, setInfo, setMode, setNumberOfMatchingResults, setToFeasibleCoordinate, setToFeasibleCoordinate, setWarning, simulate, throwInputError, useStepNumber, writeStepNumberprotected int nS
protected int dimX
protected int dimCon
protected int dimDis
protected int dimF
protected int[] leng
protected int[] ind
protected int[] step
protected boolean stopAtError
java.util.Vector<Point> poiVec
public Mesh(GenOpt genOptData) throws OptimizerException, java.io.IOException, java.lang.Exception, InputFormatException
genOptData - a reference to the GenOpt object.OptimizerExceptionjava.io.IOException - if an I/O exception occursjava.lang.ExceptionInputFormatExceptionpublic int run(Point x0) throws OptimizerException, java.lang.Exception
run in class Optimizerx0 - initial point+4 the only possible return valuejava.lang.ExceptionOptimizerExceptionInputFormatException - if an InputFormatException occursjava.lang.NoSuchMethodException - if a method that should be invoked could not be foundjava.lang.IllegalAccessException - if an invoked method enforces Java language access
control and the underlying method is inaccessiblejava.lang.reflect.InvocationTargetException - if an invoked method throws an exceptionprivate void perturb(int iPar)
throws OptimizerException,
java.lang.Exception
iPar - number of continuous and discrete parameters that has to be perturbedjava.lang.ExceptionOptimizerExceptionprivate void executeSimulations()
throws OptimizerException,
java.lang.Exception
java.lang.ExceptionOptimizerExceptionpublic Point getF(Point pt) throws SimulationInputException, OptimizerException, java.lang.Exception
getF in class Optimizerpt - point to be evaluatedOptimizerException - if an OptimizerException occurs or
if the user required to stop GenOptSimulationInputException - if an error in writing the
simulation input file occursjava.lang.Exception - if an I/O error in the simulation input file occurs