RandomOptimizer Class Reference

#include <Optimizer.h>

Inheritance diagram for RandomOptimizer:

Inheritance graph
Collaboration diagram for RandomOptimizer:

Collaboration graph

List of all members.

Public Member Functions

 RandomOptimizer (unsigned dim, const std::vector< unsigned > &i2O, const std::vector< bool > &positive, const std::vector< parameter_t > &start, unsigned int nrandom)
virtual statscore_t TrueRun (Point &) const

Detailed Description

Dumb baseline optimizer: just picks a random point and quits.

Definition at line 103 of file Optimizer.h.

Constructor & Destructor Documentation

RandomOptimizer::RandomOptimizer ( unsigned  dim,
const std::vector< unsigned > &  i2O,
const std::vector< bool > &  positive,
const std::vector< parameter_t > &  start,
unsigned int  nrandom 
) [inline]

Definition at line 106 of file Optimizer.h.

Member Function Documentation

statscore_t RandomOptimizer::TrueRun ( Point  )  const [virtual]

Main function that performs an optimization.

Implements Optimizer.

Definition at line 468 of file Optimizer.cpp.

References Optimizer::GetStatScore(), Point::Randomize(), and Point::SetScore().

Here is the call graph for this function:

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

Generated on Sat Jun 30 00:30:12 2012 for Moses by  doxygen 1.5.9