public class Parametric 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 independent continuous variables
|
protected int |
dimDis
number of independent discrete variables
|
protected int |
dimF
number of function values
|
protected java.util.TreeMap<Point,java.lang.Double[]> |
evaPoi
list with evaluated points and its function values
|
protected boolean |
stopAtError
flag whether run should stop or proceed if a simulation error occurs
|
done, EXCLUDING, FS, INCLUDING, LS, MAINITERATION, ORIGINAL, SUBITERATION, TRANSFORMED
Constructor and Description |
---|
Parametric(GenOpt genOptData)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Point |
getF(Point pt)
Evaluates a simulation and reports result
|
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, writeStepNumber
protected int dimCon
protected int dimDis
protected int dimF
protected boolean stopAtError
protected java.util.TreeMap<Point,java.lang.Double[]> evaPoi
public Parametric(GenOpt genOptData) throws OptimizerException, java.io.IOException, java.lang.Exception, InputFormatException
genOptData
- a reference to the GenOpt object.OptimizerException
java.io.IOException
- if an I/O exception occursjava.lang.Exception
InputFormatException
public int run(Point x0) throws OptimizerException, java.lang.Exception
run
in class Optimizer
x0
- initial point+4
the only possible return valuejava.lang.Exception
OptimizerException
InputFormatException
- 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 exceptionpublic Point getF(Point pt) throws SimulationInputException, OptimizerException, java.lang.Exception
getF
in class Optimizer
pt
- 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