public class Armijo
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 double |
Alp
Algorithm parameter
|
private double |
Bet
Algorithm parameter
|
protected int[] |
K
The exponents
k and k-1 of Beta |
private int |
Kappa
Algorithm parameter
|
private int |
KSta
Algorithm parameter
|
private int |
LMax
Algorithm parameter
|
protected DiscreteArmijoGradient |
Opt
The reference to the Optimizer object
|
protected Point[] |
xLS
The two points of the line search
|
Constructor and Description |
---|
Armijo(DiscreteArmijoGradient optimizer,
int kSta,
int lMax,
int kappa,
double alpha,
double beta)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getIndexWithLowestCost()
Gets the index to the point with the lowest function value.
|
int |
getKWithLowestCost()
Gets the exponent
k of Beta . |
Point |
getPointWithLowestCost()
Gets the point with lowest cost.
|
void |
run(int i,
Point x,
double[] h,
int k,
double del)
Runs the line search.
|
protected DiscreteArmijoGradient Opt
private double Alp
private double Bet
private int KSta
private int LMax
private int Kappa
protected Point[] xLS
protected int[] K
k
and k-1
of Beta
public Armijo(DiscreteArmijoGradient optimizer, int kSta, int lMax, int kappa, double alpha, double beta)
optimizer
- a reference to the Optimizer objectOptimizerException
- if an OptimizerException occurs or
if the user required to stop GenOptSimulationInputException
- if an error in writing the
simulation input file occursjava.lang.NoSuchMethodException
- if a method that should be invoked could not be foundjava.lang.IllegalAccessException
- if an invoked method enforces Java language access
control and the underlying method is inaccessibleInvocationTargetException
- if an invoked method throws an exceptionjava.lang.Exception
- if an I/O error in the simulation input file occurspublic void run(int i, Point x, double[] h, int k, double del) throws SimulationInputException, OptimizerException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.Exception
OptimizerException
- if an OptimizerException occurs or
if the user required to stop GenOptSimulationInputException
- if an error in writing the
simulation input file occursjava.lang.NoSuchMethodException
- if a method that should be invoked could not be foundjava.lang.IllegalAccessException
- if an invoked method enforces Java language access
control and the underlying method is inaccessibleInvocationTargetException
- if an invoked method throws an exceptionjava.lang.Exception
- if an I/O error in the simulation input file occurspublic int getKWithLowestCost()
k
of Beta
.k
of the pointpublic final Point getPointWithLowestCost()
public final int getIndexWithLowestCost()