public class Perturber
extends java.lang.Object
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 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 and Description |
---|
Perturber(Optimizer opt)
constructor for checking the optimality condition
|
Modifier and Type | Method and Description |
---|---|
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. |
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
otherwisepublic Perturber(Optimizer opt)
opt
- reference to the Optimizer objectpublic 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 conditionOptimizerException
java.lang.Exception
public Point getOptimalPoint()
public boolean gotOptimum()
true
if the checked point is a local minimum point,false
otherwise