C# Class Accord.Math.Optimization.BaseOptimizationMethod

Base class for optimization methods.
Afficher le fichier Open project: accord-net/framework

Méthodes publiques

Méthode Description
Maximize ( ) : bool

Finds the maximum value of a function. The solution vector will be made available at the Solution property.

Maximize ( double values ) : bool

Finds the maximum value of a function. The solution vector will be made available at the Solution property.

Minimize ( ) : bool

Finds the minimum value of a function. The solution vector will be made available at the Solution property.

Minimize ( double values ) : bool

Finds the minimum value of a function. The solution vector will be made available at the Solution property.

Méthodes protégées

Méthode Description
ArgumentException ( string paramName, string message, string code ) : ArgumentOutOfRangeException

Creates an exception with a given inner optimization algorithm code (for debugging purposes).

BaseOptimizationMethod ( NonlinearObjectiveFunction function ) : System

Initializes a new instance of the BaseOptimizationMethod class.

BaseOptimizationMethod ( int numberOfVariables ) : System

Initializes a new instance of the BaseOptimizationMethod class.

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

Initializes a new instance of the BaseOptimizationMethod class.

OperationException ( string message, string code ) : InvalidOperationException

Creates an exception with a given inner optimization algorithm code (for debugging purposes).

Optimize ( ) : bool

Implements the actual optimization algorithm. This method should try to minimize the objective function.

Private Methods

Méthode Description
init ( int numberOfVariables ) : void

Method Details

ArgumentException() protected static méthode

Creates an exception with a given inner optimization algorithm code (for debugging purposes).
protected static ArgumentException ( string paramName, string message, string code ) : ArgumentOutOfRangeException
paramName string
message string
code string
Résultat System.ArgumentOutOfRangeException

BaseOptimizationMethod() protected méthode

Initializes a new instance of the BaseOptimizationMethod class.
protected BaseOptimizationMethod ( NonlinearObjectiveFunction function ) : System
function NonlinearObjectiveFunction The objective function whose optimum values should be found.
Résultat System

BaseOptimizationMethod() protected méthode

Initializes a new instance of the BaseOptimizationMethod class.
protected BaseOptimizationMethod ( int numberOfVariables ) : System
numberOfVariables int The number of free parameters in the optimization problem.
Résultat System

BaseOptimizationMethod() protected méthode

Initializes a new instance of the BaseOptimizationMethod class.
protected BaseOptimizationMethod ( int numberOfVariables, double>.Func function ) : System
numberOfVariables int The number of free parameters in the optimization problem.
function double>.Func The objective function whose optimum values should be found.
Résultat System

Maximize() public méthode

Finds the maximum value of a function. The solution vector will be made available at the Solution property.
public Maximize ( ) : bool
Résultat bool

Maximize() public méthode

Finds the maximum value of a function. The solution vector will be made available at the Solution property.
public Maximize ( double values ) : bool
values double The initial solution vector to start the search.
Résultat bool

Minimize() public méthode

Finds the minimum value of a function. The solution vector will be made available at the Solution property.
public Minimize ( ) : bool
Résultat bool

Minimize() public méthode

Finds the minimum value of a function. The solution vector will be made available at the Solution property.
public Minimize ( double values ) : bool
values double The initial solution vector to start the search.
Résultat bool

OperationException() protected static méthode

Creates an exception with a given inner optimization algorithm code (for debugging purposes).
protected static OperationException ( string message, string code ) : InvalidOperationException
message string
code string
Résultat System.InvalidOperationException

Optimize() protected abstract méthode

Implements the actual optimization algorithm. This method should try to minimize the objective function.
protected abstract Optimize ( ) : bool
Résultat bool