|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgenopt.algorithm.util.optimality.Perturber
public class Perturber
Class for checking the optimality condition of a point.
The optimality condition is checked by testing in each
orthogonal direction of xL whether the function value increases or not.
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 | |
|---|---|
private static int |
COUEXPMAX
counter how many times an expansion can be done |
protected int |
dim
dimension of the independent variable |
protected static java.lang.String |
LS
System dependent line separator |
private Optimizer |
o
reference to Optimizer Object |
protected boolean |
optimalPoint
flag: true if xC is the optimal point, false otherwise |
protected Point |
xC
point to be checked |
protected Point |
xL
lowest point in the neighborhood of xC |
| Constructor Summary | |
|---|---|
Perturber(Optimizer opt)
constructor for checking the optimality condition |
|
| Method Summary | |
|---|---|
Point |
getOptimalPoint()
gets the point with the lowest function value |
boolean |
gotOptimum()
checks whether we have an optimum point |
void |
perturb(Point x,
double stepFactor)
checks the optimality condition in the transformed space by testing in each orthogonal direction of xL whether
the function increases or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String LS
private static final int COUEXPMAX
protected Point xC
protected Point xL
private Optimizer o
protected int dim
protected boolean optimalPoint
true if xC is the optimal point, false otherwise
| Constructor Detail |
|---|
public Perturber(Optimizer opt)
opt - reference to the Optimizer object| Method Detail |
|---|
public void perturb(Point x,
double stepFactor)
throws OptimizerException,
java.lang.Exception
xL whether
the function increases or not.
x - point with lowest known objective function valuestepFactor - factor with which the step size is multiplied for the
test of the optimality condition
OptimizerException
java.lang.Exceptionpublic Point getOptimalPoint()
public boolean gotOptimum()
true if the checked point is a local minimum point,false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||