public class BarrierMethod
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONVERGED |
static int |
FAILED_IMPOSSIBLE_TO_REMAIN_WITHIN_FEASIBLE |
static int |
FAILED_MAX_ITERATION_LIMIT |
static int |
TERMINATED_BY_USER |
Constructor and Description |
---|
BarrierMethod() |
Modifier and Type | Method and Description |
---|---|
int |
optimize(ObjectiveFunction objective)
Optimize the problem specified by inputed Objective function.
|
void |
setAlpha(double alpha)
set alpha proportion during line search.
|
void |
setBeta(double beta)
set beta proportion during line search
|
void |
setMaxIterationNum(int maxIterationNum)
set the maximum iteration number in the optimization
|
void |
setMu(double mu)
set the proportion which increase t (inverse of gap in the Barrier function).
|
void |
setTolerance(double tolerance)
set tolerance value which defines the optimization accuracy.
|
public static final int CONVERGED
public static final int FAILED_MAX_ITERATION_LIMIT
public static final int FAILED_IMPOSSIBLE_TO_REMAIN_WITHIN_FEASIBLE
public static final int TERMINATED_BY_USER
public int optimize(ObjectiveFunction objective) throws IllegalActionException
objective
- : the class which defines the objective (cost and constraints) functions.IllegalActionException
public void setAlpha(double alpha)
alpha
- : setting valuepublic void setBeta(double beta)
beta
- : setting valuepublic void setMaxIterationNum(int maxIterationNum)
maxIterationNum
- : maximum iteration numberpublic void setMu(double mu)
mu
- : setting valuepublic void setTolerance(double tolerance)
tolerance
- : tolerance