Common interface for function optimization methods. More...
#include <IOptimizationMethod.h>
Public Member Functions | |
virtual int | GetNumberOfVariables ()=0 |
Gets the number of variables (free parameters) in the optimization problem. More... | |
virtual af::array | GetSolution ()=0 |
Gets the current solution found, the values of the parameters which optimizes the function. More... | |
virtual void | SetSolution (af::array &x)=0 |
Gets a solution. More... | |
virtual Scalar | GetValue ()=0 |
Gets the output of the function at the current Solution. More... | |
virtual bool | Minimize (int *cycle=nullptr)=0 |
Finds the minimum value of a function. The solution vector will be made available at the Solution property. More... | |
virtual bool | Maximize (int *cycle=nullptr)=0 |
Finds the maximum value of a function. The solution vector will be made available at the Solution property. More... | |
Common interface for function optimization methods.
Hmetal T, 16.03.2017.
Definition at line 42 of file IOptimizationMethod.h.
|
inline |
Definition at line 121 of file IOptimizationMethod.h.
|
pure virtual |
Gets the number of variables (free parameters) in the optimization problem.
Hmetal T, 16.03.2017.
Implemented in NeuralEngine::MachineLearning::BaseOptimizationMethod< Scalar >.
|
pure virtual |
Gets the current solution found, the values of the parameters which optimizes the function.
Hmetal T, 16.03.2017.
Implemented in NeuralEngine::MachineLearning::BaseOptimizationMethod< Scalar >.
|
pure virtual |
Gets a solution.
Hmetal T, 16.03.2017.
parameter1 | The first parameter. |
Implemented in NeuralEngine::MachineLearning::BaseOptimizationMethod< Scalar >.
|
pure virtual |
Gets the output of the function at the current Solution.
Hmetal T, 16.03.2017.
Implemented in NeuralEngine::MachineLearning::BaseOptimizationMethod< Scalar >.
|
pure virtual |
Finds the minimum value of a function. The solution vector will be made available at the Solution property.
Hmetal T, 16.03.2017.
true
if the method converged to a Solution. In this case, the found value will also be available at the Value property. Implemented in NeuralEngine::MachineLearning::BaseOptimizationMethod< Scalar >.
|
pure virtual |
Finds the maximum value of a function. The solution vector will be made available at the Solution property.
Hmetal T, 16.03.2017.
true
if the method converged to a Solution. In this case, the found value will also be available at the Value property. Implemented in NeuralEngine::MachineLearning::BaseOptimizationMethod< Scalar >.