C# Класс Accord.Math.Optimization.BaseOptimizationMethod

Base class for optimization methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
init ( int numberOfVariables ) : void

Описание методов

ArgumentException() защищенный статический Метод

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
Результат System.ArgumentOutOfRangeException

BaseOptimizationMethod() защищенный Метод

Initializes a new instance of the BaseOptimizationMethod class.
protected BaseOptimizationMethod ( NonlinearObjectiveFunction function ) : System
function NonlinearObjectiveFunction The objective function whose optimum values should be found.
Результат System

BaseOptimizationMethod() защищенный Метод

Initializes a new instance of the BaseOptimizationMethod class.
protected BaseOptimizationMethod ( int numberOfVariables ) : System
numberOfVariables int The number of free parameters in the optimization problem.
Результат System

BaseOptimizationMethod() защищенный Метод

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.
Результат System

Maximize() публичный Метод

Finds the maximum value of a function. The solution vector will be made available at the Solution property.
public Maximize ( ) : bool
Результат bool

Maximize() публичный Метод

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.
Результат bool

Minimize() публичный Метод

Finds the minimum value of a function. The solution vector will be made available at the Solution property.
public Minimize ( ) : bool
Результат bool

Minimize() публичный Метод

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.
Результат bool

OperationException() защищенный статический Метод

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
Результат System.InvalidOperationException

Optimize() защищенный абстрактный Метод

Implements the actual optimization algorithm. This method should try to minimize the objective function.
protected abstract Optimize ( ) : bool
Результат bool