EvaluationLogic

scalation.optimization.quasi_newton.EvaluationLogic

The EvaluationLogicNative trait specifies the requirements for the logic to be used for variable evaluation against the objective function in the lbfgsMain method of the LBFGS object. The methods provided in this trait are called directly by the code used by the BFGS class.

Classes mixing in this trait must implement the evaluate method, which is used to evaluate the gradients and objective function for a given state of the variables.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def evaluate(instance: Any, x: VectorD, n: Int, step: Double): LBFGSVarEvaluationResults

Evaluates the gradients and objective function according to the state of the variables during the minimization process.

Evaluates the gradients and objective function according to the state of the variables during the minimization process.

Value parameters

instance

user data provided by each call of the lbfgsMain method. Can have Any type defined by the user as long as the same type is utilized in other instances that rely on this EvaluationLogic

n

the number of variables

step

current step chosen by the line search routine.

x

VectorD with the current values of the variables

Attributes

Returns

LBFGSVarEvaluationResults, results obtained from evaluating the variables