ph_simplex

Function summary
centre_de_gravetat simp
crea_simplex n_dimensions &rest valors_inicials
min_simplex simplex funcio &key (niter 100) (tol_rel 0.001)
ordena_simplex simplex funcio
NIL    [Package]

This package provides the simplex n-variable minimization method.

ordena_simplex   simplex funcio  [Function]

Sorts the simplex. Its first element will now be the more little, and the last the bigger.Its paramethers are the simplex and a function used to sort, which returns < 0 if its first argument is more little than the second, and > 0 otherwise.

centre_de_gravetat   simp  [Function]

Returns the gravity center of a simplex. The simplex must be sorted.

crea_simplex   n_dimensions &rest valors_inicials  [Function]

Returns a n-dimension simplex, which uses valors_inicials.

min_simplex   simplex funcio &key (niter 100) (tol_rel 0.001)  [Function]

Minimizes the function using simplex. You can change the maximum number of iterations and the relative tolerance.