|
golib
0.5
|
Public Types | |
| typedef BarrierOptFunction< matrix_type, vector_type > | parent |
| typedef matrix_type::value_type | value_type |
Public Types inherited from goMath::BarrierOptFunction< matrix_type, vector_type > | |
| typedef OptFunction< matrix_type, vector_type >::value_type | value_type |
| typedef OptFunction< matrix_type, vector_type > | function_type |
Public Types inherited from goMath::OptFunction< matrix_type, vector_type > | |
| typedef vector_type::value_type | value_type |
| Value of the matrix and vector types matrix_type and vector_type. | |
Public Member Functions | |
| BarrierOptFunctionPhase1 (double eps=0.01) | |
| virtual value_type | barrier (const vector_type &x_s) |
Barrier function . More... | |
| virtual value_type | operator() (const vector_type &x_s) |
Calculate . More... | |
| virtual void | grad (vector_type &x_s, vector_type &ret) |
| Calculate the gradient of f at x. More... | |
| virtual void | hessian (vector_type &x_s, matrix_type &ret) |
| Calculate the Hessian of f at x. More... | |
Public Member Functions inherited from goMath::BarrierOptFunction< matrix_type, vector_type > | |
| BarrierOptFunction (double eps=0.01) | |
| void | setT (value_type t) |
| value_type | t () const |
| void | setProblem (goAutoPtr< OptProblem< matrix_type, vector_type > > p) |
| virtual void | hessian (vector_type &x, matrix_type &ret) |
| void | barrierGradHessian (const vector_type &x, vector_type &grad, matrix_type &hess) |
| goAutoPtr< OptProblem< matrix_type, vector_type > > | problem () |
Additional Inherited Members | |
Protected Member Functions inherited from goMath::OptFunction< matrix_type, vector_type > | |
| OptFunction (double eps=0.01) | |
| Constructor. More... | |
Protected Attributes inherited from goMath::BarrierOptFunction< matrix_type, vector_type > | |
| goAutoPtr< OptProblem< matrix_type, vector_type > > | myProblem |
| vector_type | myBufferGrad |
| matrix_type | myBufferHess |
| value_type | my_t |
|
inlinevirtual |
Barrier function
.
Calculates the barrier function
for all inequality constraints
which obviously must be met strictly.
| x_s | Point at which to calculate . The last entry of vector x_s is s. |
Reimplemented from goMath::BarrierOptFunction< matrix_type, vector_type >.
|
inlinevirtual |
Calculate the gradient of f at x.
Does a numerical approximation with forward differences. Re-implement for specialisations.
| x | Point at which to calculate the gradient |
| ret | Contains on return |
Reimplemented from goMath::BarrierOptFunction< matrix_type, vector_type >.
|
inlinevirtual |
Calculate the Hessian of f at x.
Does a numerical approximation with forward differences. Re-implement for specialisations.
| x | Point at which to calculate the Hessian |
| ret | Contains on return |
Reimplemented from goMath::OptFunction< matrix_type, vector_type >.
|
inlinevirtual |
Calculate
.
is the original function to be minimised,
is the log barrier.
Reimplemented from goMath::BarrierOptFunction< matrix_type, vector_type >.