v2.0.0
Loading...
Searching...
No Matches
UTILSLIB::SimplexAlgorithm Class Reference

Simplex algorithm. More...

#include <simplex_algorithm.h>

Static Public Member Functions

template<typename T>
static bool simplex_minimize (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &p, Eigen::Matrix< T, Eigen::Dynamic, 1 > &y, T ftol, T(*func)(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &x, const void *user_data), const void *user_data, int max_eval, int &neval, int report, bool(*report_func)(int loop, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &fitpar, double fval))

Protected Member Functions

 SimplexAlgorithm ()

Detailed Description

Simplex algorithm.

Simplex algorithm is an optimization method to solve linear optimization problems.

Definition at line 68 of file simplex_algorithm.h.

Constructor & Destructor Documentation

◆ SimplexAlgorithm()

UTILSLIB::SimplexAlgorithm::SimplexAlgorithm ( )
protected

Protected Constrcutor to make class non-instantiable.

Member Function Documentation

◆ simplex_minimize()

template<typename T>
bool UTILSLIB::SimplexAlgorithm::simplex_minimize ( Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & p,
Eigen::Matrix< T, Eigen::Dynamic, 1 > & y,
T ftol,
T(* func )(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &x, const void *user_data),
const void * user_data,
int max_eval,
int & neval,
int report,
bool(* report_func )(int loop, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &fitpar, double fval) )
static

mne_simplex_fit.c Refactored: mne_simplex_minimize

Minimization with the simplex algorithm. Float implementation Modified from Numerical recipes

Parameters
[in]pThe initial simplex.
[in]yFunction values at the vertices.
[in]ftolRelative convergence tolerance.
[in]funcThe function to be evaluated.
[in]user_dataData to be passed to the above function in each evaluation.
[in]max_evalMaximum number of function evaluations.
[in]nevalNumber of function evaluations.
[in]reportHow often to report (-1 = no_reporting).
[in]report_funcThe function to be called when reporting.
Returns
True when setup was successful, false otherwise.

Definition at line 128 of file simplex_algorithm.h.


The documentation for this class was generated from the following file: