|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgenopt.algorithm.Optimizer
genopt.algorithm.Mesh
public class Mesh
Class for doing a parametric run where the parameters are
the nodes of a grid.
This project was carried out at:
and supported byGenOpt 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.
| Field Summary | |
|---|---|
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 |
| Fields inherited from class genopt.algorithm.Optimizer |
|---|
done, EXCLUDING, FS, INCLUDING, LS, MAINITERATION, ORIGINAL, SUBITERATION, TRANSFORMED |
| Constructor Summary | |
|---|---|
Mesh(GenOpt genOptData)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public Mesh(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 occurs
java.lang.Exception
InputFormatException| Method Detail |
|---|
public int run(Point x0)
throws OptimizerException,
java.lang.Exception
run in class Optimizerx0 - initial point
+4 the only possible return value
java.lang.Exception
OptimizerException
InputFormatException - if an InputFormatException 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
java.lang.reflect.InvocationTargetException - if an invoked method throws an exception
private void perturb(int iPar)
throws OptimizerException,
java.lang.Exception
iPar - number of continuous and discrete parameters that has to be perturbed
java.lang.Exception
OptimizerException
private void executeSimulations()
throws OptimizerException,
java.lang.Exception
java.lang.Exception
OptimizerException
public Point getF(Point pt)
throws SimulationInputException,
OptimizerException,
java.lang.Exception
getF in class Optimizerpt - point to be evaluated
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.Exception - if an I/O error in the simulation input file occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||