public class LogarithmicBarrier extends Object implements BarrierFunction
Constructor and Description |
---|
LogarithmicBarrier(ConvexMultivariateRealFunction[] f,
int dimension)
Create the logarithmic barrier function.
|
Modifier and Type | Method and Description |
---|---|
double |
calculatePhase1InitialFeasiblePoint(double[] originalNotFeasiblePoint,
double tolerance)
Calculates the initial value for the s parameter in Phase I.
|
BarrierFunction |
createPhase1BarrierFunction()
Create the barrier function for the Phase I.
|
int |
getDim()
Get dimension
|
double |
getDualityGap(double t)
Calculates the duality gap for a barrier method build with this barrier function
|
double[] |
gradient(double[] value)
Function gradient at point X
|
double[][] |
hessian(double[] value)
Function hessian at point X.
|
double |
value(double[] val)
Evaluation of the function at point X.
|
public LogarithmicBarrier(ConvexMultivariateRealFunction[] f, int dimension)
f
- convex multivariate functiondimension
- dimensionpublic double value(double[] val)
value
in interface TwiceDifferentiableMultivariateRealFunction
val
- pointpublic double[] gradient(double[] value)
gradient
in interface TwiceDifferentiableMultivariateRealFunction
value
- pointpublic double[][] hessian(double[] value)
hessian
in interface TwiceDifferentiableMultivariateRealFunction
value
- pointpublic int getDim()
getDim
in interface TwiceDifferentiableMultivariateRealFunction
public double getDualityGap(double t)
getDualityGap
in interface BarrierFunction
t
- valuepublic BarrierFunction createPhase1BarrierFunction()
createPhase1BarrierFunction
in interface BarrierFunction
public double calculatePhase1InitialFeasiblePoint(double[] originalNotFeasiblePoint, double tolerance)
calculatePhase1InitialFeasiblePoint
in interface BarrierFunction
originalNotFeasiblePoint
- initial point (not-feasible)tolerance
- toleranceCopyright © 2023 CNES. All rights reserved.