|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for objects that define an objective function to be optimized.
Such objects will be passed to the various optimizer algorithms and used to compute the value (and optionally other information such as gradients) of the objective at particular model points as the optimization proceeds.
| Method Summary | |
void |
assignParameters(ModelPointNumericInt arg)
Install the parameters from the ModelPoint argument, so that eval can find them. |
ModelPoint |
eval(ModelPointNumericInt arg)
Evaluate the expression at the supplied ModelPoint. |
NumericArray |
getGradient(ModelPointNumericInt arg)
Retreive the return the computed gradient of the objective, and store it in the ModelPoint argument, if that is non-null. |
NumericMatrix |
getHessian(ModelPointNumericInt arg)
Retreive the return the computed hessian of the objective, and store it in the ModelPoint argument, if that is non-null. |
double |
getValue(ModelPointNumericInt arg)
Retreive the return the computed value of the objective, and store it in the ModelPoint argument, if that is non-null. |
| Method Detail |
public ModelPoint eval(ModelPointNumericInt arg)
ModelPoint.The returned value (typically the same object as the argument) has the appropriate fields (e.g., value, gradient and/or hessian) filled in.
public void assignParameters(ModelPointNumericInt arg)
public double getValue(ModelPointNumericInt arg)
public NumericArray getGradient(ModelPointNumericInt arg)
By convention, returns null if the gradient is not being computed.
public NumericMatrix getHessian(ModelPointNumericInt arg)
By convention, returns null if the hessian is not being computed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||