|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgenopt.algorithm.Optimizer
genopt.algorithm.Parametric
public class Parametric
Class for doing a parametric run where one parameter
is perturbed at a time while the others are fixed.
Linear and logarithmic spacing can be selected for each
parameter independently.
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 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 |
| Fields inherited from class genopt.algorithm.Optimizer |
|---|
done, EXCLUDING, FS, INCLUDING, LS, MAINITERATION, ORIGINAL, SUBITERATION, TRANSFORMED |
| Constructor Summary | |
|---|---|
Parametric(GenOpt genOptData)
Constructor |
|
| Method Summary | |
|---|---|
Point |
getF(Point pt)
Evaluates a simulation and reports result |
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 dimCon
protected int dimDis
protected int dimF
protected boolean stopAtError
protected java.util.TreeMap<Point,java.lang.Double[]> evaPoi
| Constructor Detail |
|---|
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 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
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 | ||||||||