proj home

Files   Classes   Functions   Hierarchy  

explorepd1.h File Reference

#include <cassert>
#include <iostream>
#include <typeop.h>
#include <print.h>

Include dependency graph for explorepd1.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef typeop< EXP >::Tbare::Ttype T

Functions

 explorepd1 (uintc N_, uintc lineiterations_, T const h0step=20.0, uintc indexmax_=100)
 Construct a N dimensional direct search object on FN.
 explorepd1 (FN fn_, uintc N_, uintc lineiterations_, T const h0step=20.0, uintc indexmax_=100)
 FN can be a reference.
 ~explorepd1 ()
 Cleanup.
void reset (T const *x0)
void operator++ ()
 Iterate towards the minimum.

Variables

T delta
 The multiplier on hi[] for partial derivative calc.
Tlinex0
 x0 in line minimization.
Tlinedi
 Direction in line minimization.
T linet0
 The initial left t interval point.
T linet1
 The initial right t interval point.
LNM linemin
 The line minimizer.
uint lineiterations
 How many times to evaluate the line minimizer per iteration.


Typedef Documentation

typedef typeop<EXP>::Tbare::Ttype T

Definition at line 17 of file explorepd1.h.


Function Documentation

explorepd1::explorepd1 ( FN  fn_,
uintc  N_,
uintc  lineiterations_,
T const   h0step = 20.0,
uintc  indexmax_ = 100 
) [inline]

FN can be a reference.

Definition at line 95 of file explorepd1.h.

00102   : EXP(fn_,N_,h0step,indexmax_), 
00103   delta(0.01),
00104   linex0(new T[N_]), linedi(new T[N_]),
00105   linet0(-2.0), linet1(2.0), 
00106   linemin(N_,EXP::fn_,EXP::xi,linex0,linedi),
00107   lineiterations(lineiterations_)
00108 { 
00109 }

explorepd1::explorepd1 ( uintc  N_,
uintc  lineiterations_,
T const   h0step = 20.0,
uintc  indexmax_ = 100 
) [inline]

Construct a N dimensional direct search object on FN.

Definition at line 78 of file explorepd1.h.

00084   : EXP(N_,h0step,indexmax_),
00085   delta(0.01),
00086   linex0(new T[N_]), linedi(new T[N_]),
00087   linet0(-2.0), linet1(2.0), 
00088   linemin(N_,EXP::fn,EXP::xi,linex0,linedi),
00089   lineiterations(lineiterations_)
00090 { 
00091 }

void operator++ (  ) 

Iterate towards the minimum.

void reset ( T const *  x0  ) 

explorepd1::~explorepd1 (  )  [inline]

Cleanup.

Definition at line 112 of file explorepd1.h.

References linedi, and linex0.

00113 {
00114   delete[] linex0;
00115   delete[] linedi;
00116 }


Variable Documentation

Direction in line minimization.

Definition at line 25 of file explorepd1.h.

Referenced by ~explorepd1().

How many times to evaluate the line minimizer per iteration.

Definition at line 35 of file explorepd1.h.

LNM linemin

The line minimizer.

Definition at line 32 of file explorepd1.h.

The initial left t interval point.

Definition at line 27 of file explorepd1.h.

The initial right t interval point.

Definition at line 29 of file explorepd1.h.

x0 in line minimization.

Definition at line 23 of file explorepd1.h.

Referenced by ~explorepd1().


Generated on Fri Mar 4 00:49:44 2011 for Chelton Evans Source by  doxygen 1.5.8