genopt.algorithm
Class PSOCCMesh

java.lang.Object
  extended by genopt.algorithm.Optimizer
      extended by genopt.algorithm.util.pso.ModelPSO
          extended by genopt.algorithm.PSOCC
              extended by genopt.algorithm.PSOCCMesh
Direct Known Subclasses:
GPSPSOCCHJ

public class PSOCCMesh
extends PSOCC

Class for minimizing a function using a mesh particle swarm optimization algorithm with constriction coefficient for the particle location update equation.

This project was carried out at:

and supported by

GenOpt Copyright (c) 1998-2011, 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.

Version:
GenOpt(R) 3.1.0 (December 8, 2011)

Author:
Michael Wetter

Field Summary
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
 
Fields inherited from class genopt.algorithm.util.pso.ModelPSO
CogAcc, CurPop, dimCon, dimDis, dimF, GloBes, IGen, LenBitStr, LocBes, MaxVelDis, NumGen, NumPar, RanGen, SocAcc, VelCon, VelDis, VelMaxCon
 
Fields inherited from class genopt.algorithm.Optimizer
done, EXCLUDING, FS, INCLUDING, LS, MAINITERATION, ORIGINAL, SUBITERATION, TRANSFORMED
 
Constructor Summary
PSOCCMesh(GenOpt genOptData)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class genopt.algorithm.PSOCC
setConstrictionCoefficientParameter, updateVelocity
 
Methods inherited from class genopt.algorithm.util.pso.ModelPSO
clampVelocity, run
 
Methods inherited from class genopt.algorithm.Optimizer
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X0Con

protected double[] X0Con
Initial values of the continuous parameters


MesSizDiv

private int MesSizDiv
The mesh size divider 'r'


IniMesSizExp

private int IniMesSizExp
The initial mesh size exponent 's_k'


Delta

private double[] Delta
Mesh size factor

Constructor Detail

PSOCCMesh

public PSOCCMesh(GenOpt genOptData)
          throws OptimizerException,
                 java.io.IOException,
                 java.lang.Exception,
                 InputFormatException
Constructor

Parameters:
genOptData - a reference to the GenOpt object.
Note: the object is used as a reference. Hence, the data of GenOpt are modified by this Class.
Throws:
OptimizerException - if an OptimizerException occurs or if the user required to stop GenOpt
SimulationInputException - if an error in writing the simulation input file occurs
java.lang.NoSuchMethodException - if a method that should be invoked could not be found
java.lang.IllegalAccessException - if an invoked method enforces Java language access control and the underlying method is inaccessible
InvocationTargetException - if an invoked method throws an exception
java.lang.Exception - if an I/O error in the simulation input file occurs
java.io.IOException
InputFormatException
Method Detail

getF

public Point[] getF(Point[] x,
                    boolean stopAtError)
             throws SimulationInputException,
                    OptimizerException,
                    java.lang.NoSuchMethodException,
                    java.lang.IllegalAccessException,
                    java.lang.Exception
Evaluates the simulation based on the parameter set x
The value constraints determines in which mode the constraints are treated

Overrides:
getF in class Optimizer
Parameters:
x - the points to be evaluated
stopAtError - set to false to continue with function evaluations even if there was an error
Returns:
a clone of the points with the new function values stored
Throws:
OptimizerException - if an OptimizerException occurs or if the user required to stop GenOpt
SimulationInputException - if an error in writing the simulation input file occurs
java.lang.NoSuchMethodException - if a method that should be invoked could not be found
java.lang.IllegalAccessException - if an invoked method enforces Java language access control and the underlying method is inaccessible
InvocationTargetException - if an invoked method throws an exception
java.lang.Exception - if an I/O error in the simulation input file occurs

getMeshSizeDivider

protected final int getMeshSizeDivider()
Gets the mesh size divider.

Returns:
the mesh size divider

getInitialMeshSizeExponent

protected final int getInitialMeshSizeExponent()
Gets the initial mesh size exponent.

Returns:
the initial mesh size exponent