| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions
TePDISimplex Class Reference
General purpose algorithms.

This is the class for Simplex, an implementation of the Nelder-Mead simplex method to minimize a given function. More...

`#include <TePDISimplex.hpp>`

Inheritance diagram for TePDISimplex:

List of all members.

## Public Member Functions

| TePDISimplex ()
| ~TePDISimplex ()
bool | CheckParameters (const TePDIParameters &parameters) const

## Protected Member Functions

void | ResetState (const TePDIParameters &params)
bool | RunImplementation ()

## Detailed Description

This is the class for Simplex, an implementation of the Nelder-Mead simplex method to minimize a given function.

Author:
  Alexandre Noma <alex.noma@gmail.com>

Note:
  Based on the original code from Michael F. Hutt (http://www.mikehutt.com)
  The general required parameters:

Parameters:

  objective_function | (double (*func)(double*)) - pointer for a objective function which receives a double array and returns a double value.
  num_variables | (int) - number of variables.
  x_array | (double *) - an array with starting points.
  max_iterations | (int) - number of maximum iterations.
  epsilon | (double) - value used for convergence test.

Examples:

  TePDISimplex_test.cpp.

## Constructor & Destructor Documentation

TePDISimplex::TePDISimplex | ( |  | ) |

Default Constructor.

TePDISimplex::~TePDISimplex | ( |  | ) |

Default Destructor

## Member Function Documentation

bool TePDISimplex::CheckParameters | ( | const TePDIParameters & | parameters | ) | const`[virtual]`

Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.

Error log messages must be generated. No exceptions generated.

Parameters:

  parameters | The parameters to be checked.

Returns:
  true if the parameters are OK. false if not.

Implements TePDIAlgorithm.

void TePDISimplex::ResetState | ( | const TePDIParameters & | params | ) | `[protected, virtual]`

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referente at initial state.

Implements TePDIAlgorithm.

bool TePDISimplex::RunImplementation | ( |  | ) | `[protected, virtual]`

Runs the current algorithm implementation.

Returns:
  true if OK. false on error.

Implements TePDIAlgorithm.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDISimplex.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDISimplex.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines