class SlaveForward : public Forward

a class for user-defined forward operators

Inheritance:


public members:

SlaveForward ( int ndim, int ndat , AString & cmdtr, const AString & argtr, int verbose)
Constructor
int ndim
dimension of the Model space
int ndat
number of output
AString & cmdtr
SlaveForward invokes the executable file, cmdtr
const AString & argtr
SlaveForward invokes cmstr with arguments argstr
int verbose
=1, verbose; =0, quiet
const char* className () const
returns name of the class;
List <double> dataList (const Model <double>& m)
returns a list of data as a result of evaluation
List <double> dataList (const Model <long>& m)
returns a list of data as a result of evaluation
Vector <double>* gradient (const Model <double>& m)
returns the gradient vector evaluated at the Model m
Vector <double>* gradient (const Model <long>& m)
returns the gradient vector evaluated at the Model m

Inherited from Forward:

public members:

int isValid() const
void verbose(const int)
int experiments()

Documentation

SlaveForward is a class for user-defined forward operators. SlaveForward almost a duplicate of the class Slave- ObjectiveFunction in UGA developed by Martin Smith of NER. It provides a communication of the optimization and user- suppiled objective-function evaluation program. The executable of this prgram is invoked by SlaveForward, so they can be written in any programming language. COOOL does not know about this program, it only requires the supply of the result. The scheme of this class is adopted from that of EXPECT written by Don Libe.

SlaveForward currently only takes Models either double or long integer. It is mostly because I tried to avoid using templates, due to the ugliness of template features in G++. Hopefully, this could be changed soon.

SlaveForward ( int ndim, int ndat , AString & cmdtr, const AString & argtr, int verbose)
Usually ndat=1, the output is the result of objective-function evaluation.

List <double> dataList (const Model <double>& m)
If ndat=1, dataList returns the value of objective function evaluation.

List <double> dataList (const Model <long>& m)
If ndat=1, dataList returns the value of objective function evaluation.


this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling