public class PSOCCMesh extends PSOCC
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 |
---|---|
private double[] |
Delta
Mesh size factor
|
private int |
IniMesSizExp
The initial mesh size exponent 's_k'
|
private int |
MesSizDiv
The mesh size divider 'r'
|
protected double[] |
X0Con
Initial values of the continuous parameters
|
CogAcc, CurPop, dimCon, dimDis, dimF, GloBes, IGen, LenBitStr, LocBes, MaxVelDis, NumGen, NumPar, RanGen, SocAcc, VelCon, VelDis, VelMaxCon
done, EXCLUDING, FS, INCLUDING, LS, MAINITERATION, ORIGINAL, SUBITERATION, TRANSFORMED
Constructor and Description |
---|
PSOCCMesh(GenOpt genOptData)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Point[] |
getF(Point[] x,
boolean stopAtError)
Evaluates the simulation based on the parameter set x
The value constraints determines in which mode the constraints
are treated
After this call, the parameters in the original and in the
transformed space are set to the values that correspond to x
The step size in the transformed space is updated according
to the transformation function
A new input file is writen
the simulation is launched
simulation errors are checked
the value of the objective function is returned |
protected int |
getInitialMeshSizeExponent()
Gets the initial mesh size exponent.
|
protected int |
getMeshSizeDivider()
Gets the mesh size divider.
|
setConstrictionCoefficientParameter, updateVelocity
clampVelocity, run
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 double[] X0Con
private int MesSizDiv
private int IniMesSizExp
private double[] Delta
public PSOCCMesh(GenOpt genOptData) throws OptimizerException, java.io.IOException, java.lang.Exception, InputFormatException
genOptData
- a reference to the GenOpt object.OptimizerException
- if an OptimizerException occurs or
if the user required to stop GenOptSimulationInputException
- if an error in writing the
simulation input file 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 inaccessibleInvocationTargetException
- if an invoked method throws an exceptionjava.lang.Exception
- if an I/O error in the simulation input file occursjava.io.IOException
InputFormatException
public Point[] getF(Point[] x, boolean stopAtError) throws SimulationInputException, OptimizerException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.Exception
constraints
determines in which mode the constraints
are treatedx
getF
in class Optimizer
x
- the points to be evaluatedstopAtError
- set to false to continue with function evaluations even if there was an errorOptimizerException
- if an OptimizerException occurs or
if the user required to stop GenOptSimulationInputException
- if an error in writing the
simulation input file 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 inaccessibleInvocationTargetException
- if an invoked method throws an exceptionjava.lang.Exception
- if an I/O error in the simulation input file occursprotected final int getMeshSizeDivider()
protected final int getInitialMeshSizeExponent()