C# Class Accord.Math.Optimization.NonlinearObjectiveFunction

Quadratic objective function.
Inheritance: IObjectiveFunction
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
NonlinearObjectiveFunction ( Expression function, Expression gradient = null ) : System

Creates a new objective function specified through a lambda expression.

NonlinearObjectiveFunction ( int numberOfVariables, double>.Func function ) : System

Creates a new objective function specified through a string.

NonlinearObjectiveFunction ( int numberOfVariables, double>.Func function, double[]>.Func gradient ) : System

Creates a new objective function specified through a string.

Protected Methods

Method Description
NonlinearObjectiveFunction ( ) : System

Initializes a new instance of the NonlinearObjectiveFunction class.

Private Methods

Method Description
CheckGradient ( double[]>.Func value, double probe ) : void

Method Details

NonlinearObjectiveFunction() protected method

Initializes a new instance of the NonlinearObjectiveFunction class.
protected NonlinearObjectiveFunction ( ) : System
return System

NonlinearObjectiveFunction() public method

Creates a new objective function specified through a lambda expression.
public NonlinearObjectiveFunction ( Expression function, Expression gradient = null ) : System
function Expression A containing /// the function in the form of a lambda expression.
gradient Expression A containing /// the gradient of the objective function.
return System

NonlinearObjectiveFunction() public method

Creates a new objective function specified through a string.
public NonlinearObjectiveFunction ( int numberOfVariables, double>.Func function ) : System
numberOfVariables int The number of parameters in the .
function double>.Func A lambda expression defining the objective /// function.
return System

NonlinearObjectiveFunction() public method

Creates a new objective function specified through a string.
public NonlinearObjectiveFunction ( int numberOfVariables, double>.Func function, double[]>.Func gradient ) : System
numberOfVariables int The number of parameters in the .
function double>.Func A lambda expression defining the objective /// function.
gradient double[]>.Func A lambda expression defining the gradient /// of the objective function.
return System